Class: Users::SessionsController
- Inherits:
-
Devise::SessionsController
- Object
- Devise::SessionsController
- Users::SessionsController
- Defined in:
- app/controllers/simple_user/users/sessions_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/controllers/simple_user/users/sessions_controller.rb', line 9 def create self.resource = warden.authenticate!() #self.resource = warden.authenticate!(:scope => resource_name, :recall => "#{controller_path}#failure") (:notice, :signed_in) if sign_in(resource_name, resource) respond_with resource, :location => after_sign_in_path_for(resource) end |
#new ⇒ Object
4 5 6 7 |
# File 'app/controllers/simple_user/users/sessions_controller.rb', line 4 def new session[:return_to] = "/" super end |