It appears from your console session you never added the #set_primary_key macro method call to you Instructor class. I just duplicated your console session as follows in a test project only *with* the set_primary_key call as follows:
i = Instructor.create i.id # => 1 i.person_id # => 1 Instructor.find(1) # => #<Instructor person_id: 1, created_at: "2011-03-25 17:24:04", updated_at: "2011-03-25 17:24:04"> i = Instructor.find_by_person_id(1) # => #<Instructor person_id: 1, created_at: "2011-03-25 17:24:04", updated_at: "2011-03-25 17:24:04"> i.id # => 1 i.person_id # => 1 I just wanted to point this out. I still suggest following rails conventions but rails *is* flexible (I have to flex it to support and old, pre-existing database that does NOT follow the conventions). -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.