Forum: Ruby on Rails date_select and default values?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ram (Guest)
on 2006-12-22 18:33

    In a form, I have a date_select field. But it always
    defaults to today. Can I have my value? For example,

  <%= date_select 'xx', 3, "value" =>
Date.strptime("2006-12-25","%Y-%m-%d") %>

   does not initialize the field with my value?

This topic is locked and can not be replied to.