Displaying 2 results from an estimated 2 matches for "company_branch_id".
2006 Mar 15
1
Through method problems with custom foreign_keys
...ls 1.1.
p=Person.find(1)
b=p.company_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_...
2007 Feb 04
0
Very strange observe_form problem
...pany_branch, :html => {:id =>
"company_branch_form"} do |f| %>
<%= f.text_field :street1 %>
<%= f.text_field :street2 %>
<% end %>
<%= observe_form("company_branch_form", :frequency => 1) %>
The params I get when the form changes is:
{"company_branch_id"=>"1", "action"=>"edit",
"controller"=>"admin/company_branches/details"}
This has NONE of the form values. Then when I change the observe_form
line of code to:
<%= observe_form("company_branch_form", :frequency => 1,...