SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def delete_coupon
- set_default_objects
- coupon = @coupons.find(params[:coupon_id])
- coupon.destroy
- @coupons.delete(coupon)
- render(:update) do |page|
- page.replace_html "coupon_list",
- :partial => "coupon_list",
- :locals => {:total_savings => @total_savings,
- :coupon_list => @coupons,
- :coupon_tags => @coupon_tags}
- end
- end
RAW Paste Data