Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def disabled_additive
- @additive = @purchase.additives.find(params[:id])
- @additive.update_attributes(:situation => false) rescue ""
- respond_to do |format|
- format.html { redirect_to("/admin/biddings/#{@purchase.bidding_id}/purchases/#{@purchase.id}/additives") }
- format.xml { head :ok }
- end
- end
- ActiveRecord::RecordNotFound in Admin::additivesController#disabled_additive
- Couldn't find Additive without an ID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement