Class: ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- ApplicationController
- Defined in:
- lib/generators/chapter07/begin/templates/app/controllers/application_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#after_sign_in_path_for(user) ⇒ Object
This tells Devise where to re-direct to after successful sign up or sign in.
Instance Method Details
#after_sign_in_path_for(user) ⇒ Object
This tells Devise where to re-direct to after successful sign up or sign in
5 6 7 |
# File 'lib/generators/chapter07/begin/templates/app/controllers/application_controller.rb', line 5 def after_sign_in_path_for(user) user_path(user.id) end |