search for: suserid

Displaying 1 result from an estimated 1 matches for "suserid".

Did you mean: userid
2006 Jul 30
3
Accessing @org.id yields internal number, not record id
...;t figure out the simplest thing: How to reference a record id instead of the internal memory location of that value. I''m new to Ruby but otherwise a veteran VB6/SQL programmer. My code: <snip> sSQL = "SELECT id, org_name FROM organizations WHERE user_id = ''#{sUserId}'' AND user_password = ''#{sPassword}''" @org = Organization.find_by_sql sSQL if @org write_log("Org found. Id = #{@org.id}") </snip> My log file contains: Org found. Id = 30382648 I am expecting Id to be 1. There are only tw...