Class: Admin::RacesController

Inherits:
ResourceController
  • Object
show all
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(options)
  options[:redirect_to] || (params[:continue] ? {:action => 'edit', :id => model.slug} : {:action => "index"})
end

#updateObject



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