class RacingAssociationsController

Public Instance Methods

edit() click to toggle source
# File app/controllers/racing_associations_controller.rb, line 5
def edit
  @racing_association = RacingAssociation.find(params[:id])
end
update() click to toggle source
# File app/controllers/racing_associations_controller.rb, line 9
def update
  @racing_association = RacingAssociation.find(params[:id])
  if @racing_association.update_attributes(params[:racing_association])
    flash[:notice] = "Updated #{@racing_association.name}"
    redirect_to edit_racing_association_path(@racing_association)
  else
    render :edit
  end
end