Forum: Ruby on Rails Date field translation on the GUI

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
6e9eb757fe9af397a2472d3c3096a9ca?d=identicon&s=25 Hari Venkata (hvenkata)
on 2007-03-22 06:18
(Received via mailing list)
date_select(object_name, method, options = {})

When the date_select method is it returns a select tags.  The days tag
is always set to 31 days.  Is there a way to make the month and days
tag relative.  For example when the month is selected as January the
number of days should be 31 and when the month is selected for
February the number of days should be 28 or 29 depending on whether it
is a leap year.

Is there a easy way to do this?

58c44a4a506d878f9a112f1d7b7cb87e?d=identicon&s=25 Jeremy Evans (Guest)
on 2007-03-22 19:48
(Received via mailing list)
On 3/21/07, Hari <> wrote:
> Is there a easy way to do this?
It's not too hard with Javascript, though it is a bit tedious.  I use
the Simple Date Select plugin [1], which avoids the problem entirely.


This topic is locked and can not be replied to.