Re: Saving dates

Stewart
2006-12-19T04:03:26Z

askegg wrote:
> I think Alan is right.  Rails is expected a date, but you are passing
> it an array.
>
> Use date_select in your form instead of an array of values.
>
(http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M000469)

I think i already am...


here is my code anyway.



    Date the exhibition opens:



  <%= date_select("details", "open_date") %>

    *Required




    Date the exhibition closes:



  <%= date_select("details", "close_date") %>

    *Required




am i used date_select in the correct way?