This project is archived and is in readonly mode.

#5816 ✓resolved
lee (at leemuro)

date_select helper separator functionality bug

Reported by lee (at leemuro) | October 15th, 2010 @ 02:21 PM | in 3.0.2

It appears if you use the date_select helper and you make the year your last select using the :order param, then you won't get a separator before that year select. For example, I did the following in my view:

date_select("post", "written_on", :order => [:day, :month, :year], :date_separator => '/')

and I ended up with:

[Month] / [Day] [Year]

Notice there is no separator before the year.

It appears the code for the date helper never returns a separator for the year select. Is this intended behavior or a bug? I would have expected to see a separator.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages