daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Apr 17th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top