I know that I can use Query language to find the record I want. I am doing a login page, I want to find the record which match the user name and password, but I don’t want to loop all the elements to find out the user I want (<% @users.each do |user| %>), wt should I do in RoR, except typing SQL.
Share
perhaps:
For authentication I would strongly recommend authlogic (railscast)