Module: Clearance::App::Controllers::UsersController::PrivateInstanceMethods
- Defined in:
- lib/clearance/app/controllers/users_controller.rb
Instance Method Summary collapse
- #after_successful_change_password ⇒ Object
- #create_failed ⇒ Object
- #create_successful ⇒ Object
- #url_after_change_password ⇒ Object
- #url_after_create ⇒ Object
Instance Method Details
#after_successful_change_password ⇒ Object
58 59 60 |
# File 'lib/clearance/app/controllers/users_controller.rb', line 58 def after_successful_change_password redirect_to user_path(current_user) end |
#create_failed ⇒ Object
54 55 56 |
# File 'lib/clearance/app/controllers/users_controller.rb', line 54 def create_failed render :action => "new" end |
#create_successful ⇒ Object
48 49 50 51 52 |
# File 'lib/clearance/app/controllers/users_controller.rb', line 48 def create_successful ClearanceMailer.deliver_confirmation @user flash[:notice] = "You will receive an email within the next few minutes. It contains instructions for you to confirm your account." redirect_to url_after_create end |
#url_after_change_password ⇒ Object
66 67 68 |
# File 'lib/clearance/app/controllers/users_controller.rb', line 66 def url_after_change_password user_path(current_user) end |
#url_after_create ⇒ Object
62 63 64 |
# File 'lib/clearance/app/controllers/users_controller.rb', line 62 def url_after_create new_session_url end |