Module: Clearance::App::Controllers::UsersController::PrivateInstanceMethods

Defined in:
lib/clearance/app/controllers/users_controller.rb

Instance Method Summary collapse

Instance Method Details

#after_successful_change_passwordObject



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_failedObject



54
55
56
# File 'lib/clearance/app/controllers/users_controller.rb', line 54

def create_failed
  render :action => "new"
end

#create_successfulObject



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_passwordObject



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_createObject



62
63
64
# File 'lib/clearance/app/controllers/users_controller.rb', line 62

def url_after_create
  new_session_url
end