Class: Rails::Auth::RegistrationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Rails::Auth::RegistrationsController
- Defined in:
- app/controllers/rails/auth/registrations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/rails/auth/registrations_controller.rb', line 10 def create @user = Rails::Auth.user_class.new(user_params) if @user.save @user.send_confirmation_instructions redirect_to rails_auth.new_session_path, notice: "A confirmation link has been sent to your email address. Please follow the link to activate your account." else render :new, status: :unprocessable_entity end end |
#new ⇒ Object
6 7 8 |
# File 'app/controllers/rails/auth/registrations_controller.rb', line 6 def new @user = Rails::Auth.user_class.new end |