Class: Teams::RegistrationsController

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

Instance Method Summary collapse

Methods included from RegistrationTokenValidation

#registration_token_resolves?, #registration_token_valid?, #validate_registration_token!

Instance Method Details

#createObject



11
12
13
14
15
16
17
18
19
# File 'app/controllers/jobshop/teams/registrations_controller.rb', line 11

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

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

#newObject



7
8
9
# File 'app/controllers/jobshop/teams/registrations_controller.rb', line 7

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