Class: Checkout::GiftController
- Inherits:
-
CheckoutController
- Object
- CheckoutController
- Checkout::GiftController
- Defined in:
- app/controllers/gemgento/checkout/gift_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/gemgento/checkout/gift_controller.rb', line 5 def update respond_to do |format| if @quote.update(quote_params) format.html { redirect_to after_gift_update_success_path } format.json { render json: { quote: @quote } } else format.html { redirect_to after_gift_update_fail_path, alert: 'There was a problem saving the gift message.' } format.json { render json: { errors: @quote.errors. }, status: 422 } end end end |