Method: PurchasesController#update
- Defined in:
- app/controllers/purchases_controller.rb
#update ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 |
# File 'app/controllers/purchases_controller.rb', line 59 def update respond_to do |format| if @purchase.update_attributes(params_for_model) format.html { redirect_to purchase_path(@purchase), :notice => t(:update_success, :model => "purchase") } format.json { respond_with_bip(@purchase) } else format.html { render :action => :show } format.json { respond_with_bip(@purchase) } end end end |