Class: Kuroko2::WorkersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Kuroko2::WorkersController
- Defined in:
- app/controllers/kuroko2/workers_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
4 5 6 |
# File 'app/controllers/kuroko2/workers_controller.rb', line 4 def index @workers = Kuroko2::Worker.ordered.all end |
#update ⇒ Object
8 9 10 11 |
# File 'app/controllers/kuroko2/workers_controller.rb', line 8 def update @worker.update_attributes(worker_params) redirect_to workers_path end |