Update tasks_controller.rb