Displaying 2 results from an estimated 2 matches for "vehicleregistr".
2006 Feb 03
0
Instantiating multiple child objects
Hi,
I''ve been tinkering a bit with Ruby lately, and is truly amazed by its
automation, however some of it is a bit arcane for a newbie to
understand :|
Let''s say for instance I have a object Person which has_many
VehicleRegistrations, and I want to have a form that would enable me to
instantiate many VehicleRegistrations at once.
So supposing my form enables 2 vehicleregistrations to be entered
alongside with the fields for Person, do I use something like
<%= text_field ''Person.VehicleRegistrations[]'...
2006 Feb 03
2
_form rendering question for adding multiple child objects
...="comment_42_body"
> value="I think your site is great...">
The trouble is, while this would work for editing existing objects, is
there a similar workaround for instantiating multiple child objects?
Let''s say for instance I have a object Person which has_many
VehicleRegistrations, and I want to have a form that would enable me to
instantiate many VehicleRegistrations at once.
So supposing my form enables 2 vehicleregistrations to be entered
alongside with the fields for Person, do I use something like
<%= text_field ''Person.VehicleRegistrations[]'&...