Uknown ActiveRecord method

NoMethodError in Auth userController#new_requirement

undefined method `find_by_id' for #<Class:0x4628d34>

Method in application controller: User.find_by_id(session[:user_id])

id is one of the columns of my users table...

What could be wrong?

Thanks

User.find(session[:user_id]).