I have User model with static method authenticate and I use Rubyoverflow gem.
In the controller I code:
User.authenticate(params[:user], params[:password])
but get the error:
undefined method `authenticate’ for
Rubyoverflow::User:Class
How can I say that I need the User from Rails model?
Try