Class: Billing::ModifiersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Billing::ModifiersController
- Defined in:
- app/controllers/billing/modifiers_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/controllers/billing/modifiers_controller.rb', line 11 def create @modifier = @account.modifiers.new(modifier_params) if @modifier.save redirect_to @account else render action: :new end end |
#new ⇒ Object
7 8 9 |
# File 'app/controllers/billing/modifiers_controller.rb', line 7 def new @modifier = @account.modifiers.new end |