Class: Kube::Station::ApprovedController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Kube::Station::ApprovedController
- Defined in:
- app/controllers/kube/station/approved_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'app/controllers/kube/station/approved_controller.rb', line 15 def create @kind = @cluster.resources.new(kind_params) if @kind.save redirect_to approved_index_path else render :new, status: :unprocessable_entity end end |
#destroy ⇒ Object
25 26 27 28 |
# File 'app/controllers/kube/station/approved_controller.rb', line 25 def destroy @kind.destroy redirect_to approved_index_path end |
#index ⇒ Object
7 8 9 |
# File 'app/controllers/kube/station/approved_controller.rb', line 7 def index @kinds = @cluster.resources end |
#new ⇒ Object
11 12 13 |
# File 'app/controllers/kube/station/approved_controller.rb', line 11 def new @kind = @cluster.resources.new end |