Class: Dorsale::Flyboy::TaskCommentsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- ApplicationController
- Dorsale::Flyboy::TaskCommentsController
- Defined in:
- app/controllers/dorsale/flyboy/task_comments_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/dorsale/flyboy/task_comments_controller.rb', line 4 def create @task_comment ||= TaskComment.new(task_comment_params) @task_comment. = current_user @task = @task_comment.task :update, @task if @task_comment.save redirect_to @task else render "dorsale/flyboy/tasks/show" end end |