Class: Kuroko2::WorkersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/kuroko2/workers_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_user

Instance Method Details

#indexObject



4
5
6
# File 'app/controllers/kuroko2/workers_controller.rb', line 4

def index
  @workers = Kuroko2::Worker.ordered.all
end

#updateObject



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