Class: UserRegistrationsController
- Inherits:
-
Devise::RegistrationsController
- Object
- Devise::RegistrationsController
- UserRegistrationsController
- Includes:
- SpreeBase
- Defined in:
- app/controllers/user_registrations_controller.rb
Instance Method Summary collapse
-
#cancel ⇒ Object
GET /resource/cancel Forces the session data which is usually expired after sign in to be expired now.
-
#create ⇒ Object
POST /resource/sign_up.
-
#destroy ⇒ Object
DELETE /resource.
-
#edit ⇒ Object
GET /resource/edit.
-
#new ⇒ Object
GET /resource/sign_up.
-
#update ⇒ Object
PUT /resource.
Instance Method Details
#cancel ⇒ Object
GET /resource/cancel Forces the session data which is usually expired after sign in to be expired now. This is useful if the user wants to cancel oauth signing in/up in the middle of the process, removing all OAuth session data.
48 49 50 |
# File 'app/controllers/user_registrations_controller.rb', line 48 def cancel super end |
#create ⇒ Object
POST /resource/sign_up
16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/controllers/user_registrations_controller.rb', line 16 def create @user = build_resource(params[:user]) logger.debug(@user) if resource.save (:notice, :signed_up) sign_in_and_redirect(:user, @user) else clean_up_passwords(resource) render_with_scope(:new) end end |
#destroy ⇒ Object
DELETE /resource
39 40 41 |
# File 'app/controllers/user_registrations_controller.rb', line 39 def destroy super end |
#edit ⇒ Object
GET /resource/edit
29 30 31 |
# File 'app/controllers/user_registrations_controller.rb', line 29 def edit super end |
#new ⇒ Object
GET /resource/sign_up
11 12 13 |
# File 'app/controllers/user_registrations_controller.rb', line 11 def new super end |
#update ⇒ Object
PUT /resource
34 35 36 |
# File 'app/controllers/user_registrations_controller.rb', line 34 def update super end |