This project is archived and is in readonly mode.
date_select’s :discard_month and :discard_day choose different default days
Reported by Edward Ocampo-Gooding | March 17th, 2011 @ 04:29 AM
:discard_day as an option in the
date_select view helper, the default day chosen is the
first of the month.
However, when setting
:discard_month, and it
:discard_day, the default day chosen
is the current day instead of the first of the month.
Which behaviour is correct? Either way, that feels like a bug.
Comments and changes to this ticket
Edward, it is not a bug. It is how it is designed: https://github.com/rails/rails/blob/master/actionpack/lib/action_vi...
Yes, maybe it looks strange a bit, but I don't think that it is a good idea to change it now.
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>