app/controllers/sessions_controller.rb
# Be sure to include AuthenticationSystem in Application Controller instead
Be sure to include AuthenticationSystem in Application Controller instead
Be sure to include AuthenticationSystem in Application Controller instead
def successful_login(user)
        self.current_user = user
        new_cookie_flag = (params[:remember_me] == "1")
        handle_remember_cookie! new_cookie_flag
        redirect_back_or_default('/')
        flash[:notice] = "Logged in successfully"
    end
def successful_login ( user ) self . current_user = user new_cookie_flag = ( params [ :remember_me ] == "1" ) handle_remember_cookie! new_cookie_flag redirect_back_or_default ( '/' ) flash [ :notice ] = "Logged in successfully" end
Be sure to include AuthenticationSystem in Application Controller instead
Be sure to include AuthenticationSystem in Application Controller instead
user
<not_specific>