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


couldn't find user '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

this error tells you not have user id of 8.

open browser developer tools , clear sessions/cookies , try again, in chrome find under resources tab.


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -