Class: Teams::RegistrationsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/jobshop/teams/registrations_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



15
16
17
18
19
20
21
22
23
# File 'app/controllers/jobshop/teams/registrations_controller.rb', line 15

def create
  @registration = ::Jobshop::Registration.new(params)

  if @registration.save
    (@registration.user)
  else
    render(:new)
  end
end

#newObject



11
12
13
# File 'app/controllers/jobshop/teams/registrations_controller.rb', line 11

def new
  @registration = ::Jobshop::Registration.new(params)
end