I have a model “party” that has a time field “starts_at”. I have created
a form to add new instances of this model.
<%= select_date Date.today, :prefix => ‘party’ %>
Sadly I get the error:
NoMethodError in Parties#add
undefined method `month=’ for #Party:0x256a600
How can I fix this problem? I remember that I saw in scaffolds that date
selectors have something like party[year(1n)] or so as their names…
How can I achieve this using the select_date helper?
Thanks a lot.