Class: Trade::Admin::PaymentStrategiesController
- Inherits:
-
BaseController
- Object
- BaseController
- Trade::Admin::PaymentStrategiesController
- Defined in:
- app/controllers/trade/admin/payment_strategies_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
- #destroy ⇒ Object
- #edit ⇒ Object
- #index ⇒ Object
- #new ⇒ Object
- #show ⇒ Object
- #update ⇒ Object
Instance Method Details
#create ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'app/controllers/trade/admin/payment_strategies_controller.rb', line 18 def create @payment_strategy = PaymentStrategy.new(payment_strategy_params) if @payment_strategy.save redirect_to admin_payment_strategies_url else render :new end end |
#destroy ⇒ Object
36 37 38 39 |
# File 'app/controllers/trade/admin/payment_strategies_controller.rb', line 36 def destroy @payment_strategy.destroy redirect_to admin_payment_strategies_url end |
#edit ⇒ Object
15 16 |
# File 'app/controllers/trade/admin/payment_strategies_controller.rb', line 15 def edit end |
#index ⇒ Object
4 5 6 |
# File 'app/controllers/trade/admin/payment_strategies_controller.rb', line 4 def index @payment_strategies = PaymentStrategy.all end |
#new ⇒ Object
11 12 13 |
# File 'app/controllers/trade/admin/payment_strategies_controller.rb', line 11 def new @payment_strategy = PaymentStrategy.new end |
#show ⇒ Object
8 9 |
# File 'app/controllers/trade/admin/payment_strategies_controller.rb', line 8 def show end |
#update ⇒ Object
28 29 30 31 32 33 34 |
# File 'app/controllers/trade/admin/payment_strategies_controller.rb', line 28 def update if @payment_strategy.update(payment_strategy_params) redirect_to admin_payment_strategies_url else render :edit end end |