Class: Mygengo::CommentsController

Inherits:
MygengoController
  • Object
show all
Defined in:
lib/generators/mugen/templates/app/controllers/mygengo/comments_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



2
3
4
5
# File 'lib/generators/mugen/templates/app/controllers/mygengo/comments_controller.rb', line 2

def create                                       
  flag = Mugen::Job.create_comment(params[:id], params[:comment])
  redirect_to mygengo_job_path(params[:id])
end