Class: SiblingsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/siblings_controller.rb

Instance Method Summary collapse

Instance Method Details

#deployObject



6
7
8
9
10
11
12
13
# File 'app/controllers/siblings_controller.rb', line 6

def deploy
  @sibling = Sibling.find(params[:id])
  if @sibling.deploy
    redirect_to siblings_deploys_path, notice: "Deploy has been queued."
  else
    redirect_to siblings_deploys_path, alert: "Something went wrong. Deploy has not been queued."
  end
end

#indexObject



2
3
4
# File 'app/controllers/siblings_controller.rb', line 2

def index
  @siblings = Sibling.all
end