Class: Bumbleworks::Gui::TasksController
- Inherits:
-
ApplicationController
- Object
- Rory::Controller
- ApplicationController
- Bumbleworks::Gui::TasksController
- Defined in:
- lib/bumbleworks/gui/controllers/tasks_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#claim ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/bumbleworks/gui/controllers/tasks_controller.rb', line 12 def claim if params[:action] == 'release' task.release else task.claim(params[:claimant]) end redirect path_to('tasks_show', :id => task.id) end |
#complete ⇒ Object
21 22 23 24 |
# File 'lib/bumbleworks/gui/controllers/tasks_controller.rb', line 21 def complete task.complete redirect path_to('tasks_index') end |
#index ⇒ Object
4 5 6 |
# File 'lib/bumbleworks/gui/controllers/tasks_controller.rb', line 4 def index expose :tasks => Bumbleworks::Task.all end |
#show ⇒ Object
8 9 10 |
# File 'lib/bumbleworks/gui/controllers/tasks_controller.rb', line 8 def show expose :task => task end |