set specific date with date_select

Luca Scaljery wrote:

Hi All

I seem to have a problem with date_select methods. I cannot set a default date. I tried the following:

<%= date_select( "post", "written_on", :selected => Date.new(2005,3,31), :order => [:day, :month, :year] ) %>

But still I get todays date :frowning:

Any suggestions what I do wrong here ?

Thnx a lot LuCa

-- Posted via http://www.ruby-forum.com/.

I think this may be a bug. http://dev.rubyonrails.org/ticket/6124