Class: My::DriversController
- Inherits:
-
BaseController
- Object
- BaseController
- My::DriversController
- Defined in:
- app/controllers/ship/my/drivers_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
19 20 21 |
# File 'app/controllers/ship/my/drivers_controller.rb', line 19 def destroy @driver.destroy end |
#edit ⇒ Object
8 9 |
# File 'app/controllers/ship/my/drivers_controller.rb', line 8 def edit end |
#show ⇒ Object
5 6 |
# File 'app/controllers/ship/my/drivers_controller.rb', line 5 def show end |
#update ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/controllers/ship/my/drivers_controller.rb', line 11 def update @driver.assign_attributes(driver_params) unless @driver.save render :edit, locals: { model: @driver }, status: :unprocessable_entity end end |