I’ve got a bunch of form fields that are mostly normal:
<%= text_field ‘car’, ‘maker’, :size => 40 %>
<%= text_field ‘car’, ‘owner’, :size => 40 %>
<%= text_field ‘car’, ‘color’, :size => 40 %>
All these attributes are in the cars table. But one of the fields,
‘price’, is stored in a different table:
<%= text_field ‘car’, ‘price’, :size => 40 %>
‘price’ is an attribute of the financials table. How can I have the
form submission update the field in this second table? I tried
changing the param name to this:
<%= text_field ‘car[financials]’, ‘price’, :size => 40 %>
…but that didn’t work. I know this is weird, but the client has it
this way due to legacy reasons, and I can’t change the schema right
now. Any and all suggestions are appreciated.
Thanks!
-Jason
PS: tables and attributes have been changed to protect the innocent.