Guest User

Untitled

a guest
Jul 30th, 2018
761
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def self.authenticate_user(username,password)
  2. find(:first, :conditions => ["username = ? and password = ?", username, password]) || raise ActiveRecord::RecordNotFound
  3. end
Add Comment
Please, Sign In to add comment