Class: Admin::RacesController
- Inherits:
-
ResourceController
- Object
- ResourceController
- Admin::RacesController
- Defined in:
- app/controllers/admin/races_controller.rb
Instance Method Summary collapse
Instance Method Details
#continue_url(options) ⇒ Object
11 12 13 |
# File 'app/controllers/admin/races_controller.rb', line 11 def continue_url() [:redirect_to] || (params[:continue] ? {:action => 'edit', :id => model.slug} : {:action => "index"}) end |
#update ⇒ Object
6 7 8 9 |
# File 'app/controllers/admin/races_controller.rb', line 6 def update model.update_attributes!(params[model_symbol]) response_for :update end |