Displaying 1 result from an estimated 1 matches for "phone_number_1_location_or_kind".
2006 May 24
1
does select support arrays in a form with multiple models?
i have a one-to-many model (an addressbook of contacts with many phone
numbers). i want to represent a select element so that its name is an
array containing the phone_number id...
<select id="phone_number_1_location_or_kind"
name="phone_number[1][location_or_kind]">
<option value="Work">Work</option>
<option value="Home">Home</option>
<option value="Fax">Fax</option>
</select>
other form elements (such as text_field) allow for...