Displaying 1 result from an estimated 1 matches for "book_12_desc".
2006 Jul 26
2
text_field and date_select in collection
....books %>
<%= text_area ''book[]'', ''note'' %>
<%= datetime_select ''book[]'', ''published_on'' %>
<% end %>
the text_field works nice, the generated code looks like:
<textarea cols="40" id="book_12_desc" name="book[12][desc]">foo</textarea>
the ID of a book record is there.
BUT i do not know, how to achieve this with the date_select helper?
the helper generates:
<select name="book[published_on(2i)]">
<option value="00">00</option
....