On 3/21/07, Hari <hvenkata-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> 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?
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.
[1] http://wiki.rubyonrails.com/rails/pages/Simple+Date+Select+Plugin.
Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---