Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## error
- undefined local variable or method `session' for User:Class
- ## model code
- private
- def self.authenticate(username,password)
- session[:user] = find(:first, :conditions => ["username = '%s' AND password = '%s'", username, password])
- end
Add Comment
Please, Sign In to add comment