Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.46 KB | None | 0 0
  1.    def disabled_additive
  2.      @additive = @purchase.additives.find(params[:id])
  3.      @additive.update_attributes(:situation => false) rescue ""
  4.  
  5.      respond_to do |format|
  6.        format.html { redirect_to("/admin/biddings/#{@purchase.bidding_id}/purchases/#{@purchase.id}/additives") }
  7.        format.xml  { head :ok }
  8.      end
  9.    end
  10.  
  11.  
  12.  
  13. ActiveRecord::RecordNotFound in Admin::additivesController#disabled_additive
  14.  
  15. Couldn't find Additive without an ID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement