Class: DistributedRails::TasksController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- DistributedRails::TasksController
- Defined in:
- app/controllers/distributed_rails/tasks_controller.rb
Instance Method Summary collapse
Instance Method Details
#next ⇒ Object
5 6 7 8 9 10 |
# File 'app/controllers/distributed_rails/tasks_controller.rb', line 5 def next @task = Task.distribute_task render "distributed_task", handlers: [:erb, :js], formats: [:js] end |
#result ⇒ Object
12 13 14 15 16 17 |
# File 'app/controllers/distributed_rails/tasks_controller.rb', line 12 def result puts params task = Task.find_by_id(params[:distributed_task_id]) task.result = params[:result] render :nothing => true end |