Topic: What breaks find_by?
I am using agile web development with rails and am trying to implement the user authentication code.
Code (table and column names are mine):
if TcEmployee == find_by_loginid(loginid)
if TcEmployee.hashed_password == encrypt_password........
TcEmployee == find_by_loginid(loginid) never finds the employee record even though I know what the correct login id is and verified it with psql, a postgreSQL utility; as well as inserted logger.debug statements into the code which verified the values passed to the routine are what I think they are.
Originally I used 'login' as the column name but in despiration changed it to loginid in case 'login' is a reserved word.
the loginid and password are both 'again' (you can tell I tried this a lot!) so there are no special characters that might break a search.
So what can break find_by_ and keep it from successfully locating a record?
Thanks for any help. -Fred