Guest User

Untitled

a guest
Apr 17th, 2018
617
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. def delete_coupon
  2. set_default_objects
  3. coupon = @coupons.find(params[:coupon_id])
  4. coupon.destroy
  5. @coupons.delete(coupon)
  6. render(:update) do |page|
  7. page.replace_html "coupon_list",
  8. :partial => "coupon_list",
  9. :locals => {:total_savings => @total_savings,
  10. :coupon_list => @coupons,
  11. :coupon_tags => @coupon_tags}
  12. end
  13. end
Add Comment
Please, Sign In to add comment