Class: NimbleshopCod::PaymentsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- NimbleshopCod::PaymentsController
- Defined in:
- app/controllers/nimbleshop_cod/payments_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/nimbleshop_cod/payments_controller.rb', line 4 def create order = Order.find_by_id! session[:order_id] order.update_attributes(payment_method: NimbleshopCod::Cod.first) order.pending respond_to do |format| format.html do redirect_to main_theme.order_path(order) end end end |