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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -