Set specific date with date_select

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

Luca S. wrote:

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

thats too bad :frowning:

thnx