Class: Staypuft::SubnetsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/staypuft/subnets_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



12
13
14
15
16
# File 'app/controllers/staypuft/subnets_controller.rb', line 12

def create
  @simple_subnet = SimpleSubnet.new(params[:staypuft_simple_subnet])
  @simple_subnet.deployment = @deployment
  @result = @simple_subnet.save
end

#newObject



8
9
10
# File 'app/controllers/staypuft/subnets_controller.rb', line 8

def new
  @simple_subnet = SimpleSubnet.new
end