search for: erson_person_id

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

Did you mean: person_person_id
2006 Mar 15
1
Through method problems with custom foreign_keys
...any_branches # gives this error: ActiveRecord::StatementInvalid: OCIError: ORA-00904: "CONTACTS"."COMPANY_BRANCH_ ID": invalid identifier: SELECT company_branches.* FROM contacts, company_branch es WHERE (company_branches.branch_id = contacts.company_branch_id AND contacts.p erson_person_id = 1) Notice that "contacts.company_branch_id" does not exist, it should be "contacts.com_branch_id" Here are the models: class Person < ActiveRecord::Base set_primary_key "person_id" has_many :contacts, :foreign_key=>"person_person_id&q...