jeudi 21 janvier 2016

any one help me, getting error with my rails server when i adding authentication

Couldn't find User with 'id'=8

Extracted source (around line #13): def current_user 13@current_user ||= User.find(session[:user_id]) if session[:user_id] 14end 15 16 def require_user

def current_user 
@current_user ||= User.find(session[:user_id]) if session[:user_id] 
end

def require_user 

Rails.root: C:/Users/AB COMPUTER/SecureSite

Application Trace | Framework Trace | Full Trace app/controllers/application_controller.rb:13:in current_user' app/controllers/application_controller.rb:17:inrequire_user' Request

Aucun commentaire:

Enregistrer un commentaire