I’m using Rails Recipes to create a login form but instead of username
and password, my setup is firstname, lastname, password.
I seemed to be gramatically challenged and not sure how to set up the
parameter list. Can anyone offer up a suggestion.
The book shows the method starting like:
user = User.find(:first, :conditions => [‘username = ?’ ,
So here is my attempt but with some obvious mistakes:
user = User.find(:first, :conditions => [‘first_name = ?’,
‘last_name = ?’, params