Displaying 2 results from an estimated 2 matches for "company_branches".
2006 Mar 15
1
Through method problems with custom foreign_keys
A person has a many company_branches and
A company_branch has many people.
This join is represented using a "contacts" table.
I am using a legacy schema so i am forced into using non-standard rails
primary keys. I am using the new through relationship in rails 1.1.
p=Person.find(1)
b=p.company_branches # gives this error:...
2007 Feb 04
0
Very strange observe_form problem
...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, :with => "wtf")
%>
I get these params:
{"company_branch_id"=>"1", "company_b...