From: Maran Hid Date: 2008-09-09T02:25:43+09:00 Subject: Re: ActiveRecord::StatementInvalid in UserController#login I think you are in the wrong forum. But to answer your question: The error is probably here: def self.authenticate(login,password) find(:first, :conditions => ["login = ? AND password ?", login, Digest::SHA1.hexdigest(password)]) end This should be def self.authenticate(login,password) find(:first, :conditions => ["login = ? AND password = ?", login, Digest::SHA1.hexdigest(password)]) end You missed an "=" :) -- Posted via http://www.ruby-forum.com/.