Method: IshManager::IroPursesController#update
- Defined in:
- app/controllers/ish_manager/iro_purses_controller.rb
#update ⇒ Object
95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'app/controllers/ish_manager/iro_purses_controller.rb', line 95 def update @iro_purse = Iro::Purse.find params[:id] :update, @iro_purse if @iro_purse.update params[:iro_purse].permit! flash[:notice] = 'Successfully updated iro_purse.' redirect_to action: :show, id: @iro_purse.id else flash[:alert] = "Cannot update iro_purse: #{@iro_purse.errors.full_messages.join(', ')}." render action: 'edit' end end |