Class: DeployOptionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- DeployOptionsController
- Defined in:
- app/controllers/deploy_options_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/controllers/deploy_options_controller.rb', line 10 def create @deploy_option = @project..build(deploy_option_params) if @deploy_option.save redirect_to edit_project_path(@project) else render :new end end |
#destroy ⇒ Object
19 20 21 22 |
# File 'app/controllers/deploy_options_controller.rb', line 19 def destroy @deploy_option.destroy redirect_to edit_project_path(@project) end |
#new ⇒ Object
6 7 8 |
# File 'app/controllers/deploy_options_controller.rb', line 6 def new @deploy_option = @project..build end |