Method: IshManager::ScheduledEmailActionsController#update
- Defined in:
- app/controllers/ish_manager/scheduled_email_actions_controller.rb
permalink #update ⇒ Object
[View source]
41 42 43 44 45 46 47 48 49 50 51 |
# File 'app/controllers/ish_manager/scheduled_email_actions_controller.rb', line 41 def update @sch = Sch.find params[:id] :update, @sch flag = @sch.update_attributes( params[:sch].permit! ) if flag flash[:notice] = "Success." else flash[:alert] = "No luck: #{@sch.errors..join(',')}." end render action: 'edit' end |