Class: Teams::RegistrationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Teams::RegistrationsController
- Defined in:
- app/controllers/jobshop/teams/registrations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 sign_in_and_redirect(@registration.user) else render(:new) end end |
#new ⇒ Object
11 12 13 |
# File 'app/controllers/jobshop/teams/registrations_controller.rb', line 11 def new @registration = ::Jobshop::Registration.new(params) end |