| Class | RacingAssociationsController |
| In: |
app/controllers/racing_associations_controller.rb
|
| Parent: | ApplicationController |
# File app/controllers/racing_associations_controller.rb, line 5 5: def edit 6: @racing_association = RacingAssociation.find(params[:id]) 7: end
# File app/controllers/racing_associations_controller.rb, line 9
9: def update
10: @racing_association = RacingAssociation.find(params[:id])
11: if @racing_association.update_attributes(params[:racing_association])
12: flash[:notice] = "Updated #{@racing_association.name}"
13: redirect_to edit_racing_association_path(@racing_association)
14: else
15: render :edit
16: end
17: end