1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
class Auth::SessionsController < Devise::SessionsController include Devise::Controllers::Rememberable layout 'auth' def create super do |resource| remember_me(resource) end end protected def after_sign_in_path_for(_resource) root_path end end