Method: IshManager::EmailContextsController#update
- Defined in:
- app/controllers/ish_manager/email_contexts_controller.rb
#update ⇒ Object
127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'app/controllers/ish_manager/email_contexts_controller.rb', line 127 def update @ctx = ::Ish::EmailContext.find params[:id] :update, @ctx if @ctx.update_attributes params[:ctx].permit! flash[:notice] = 'Saved.' redirect_to action: 'edit', id: @ctx.id return else flash[:alert] = "Could not save: #{@ctx.errors..join(', ')}" render action: :edit return end end |