Topic: How to give an ID to an input when using select helpers?
If I'm using a date_select helper how can I tell the helper to add an ID to the select, the name of the element is set (to model[attribute]) of course, but I cant find how to add an ID.
<%= date_select("search", "date", :discard_year => true, :order => [:day, :month]) %>It does not seem to appear in the Rails API...
<select name="search[date][day]">
<option value="1">1</option>
<snip>
<option value="31">31</option>
</select><select name="search[date][month]">
<option value="1">January</option>
<snip>
<option value="12">December</option>
</select>