Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/generators/chapter07/begin/templates/app/controllers/application_controller.rb

Instance Method Summary collapse

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 (user)
  user_path(user.id)
end