Class: Kube::Station::ApprovedController

Inherits:
ApplicationController show all
Defined in:
app/controllers/kube/station/approved_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#default_url_options

Instance Method Details

#createObject



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

#destroyObject



25
26
27
28
# File 'app/controllers/kube/station/approved_controller.rb', line 25

def destroy
  @kind.destroy
  redirect_to approved_index_path
end

#indexObject



7
8
9
# File 'app/controllers/kube/station/approved_controller.rb', line 7

def index
  @kinds = @cluster.resources
end

#newObject



11
12
13
# File 'app/controllers/kube/station/approved_controller.rb', line 11

def new
  @kind = @cluster.resources.new
end