This project is archived and is in readonly mode.

#6589 new
Edward Ocampo-Gooding

date_select’s :discard_month and :discard_day choose different default days

Reported by Edward Ocampo-Gooding | March 17th, 2011 @ 04:29 AM

When setting :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 implicitly sets :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

Create your profile

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

Tickets have moved to Github

The new ticket tracker is available at https://github.com/rails/rails/issues

Shared Ticket Bins

People watching this ticket

Pages