# File app/controllers/periods_controller.rb, line 73 def update @period = Period.find(params[:id]) if @period.update_attributes(params[:period]) flash[:notice] = 'Period was successfully updated.' redirect_to :action => 'show', :id => @period else render :action => 'edit' end end