Problem with "date_select" form helper

Tushar Gandhi
Tue, 04 Jan 2011 06:00:43 -0000

Hi,
I am using "date_select" form helper to select the date.
My code is as follows:-

<%=date_select("post", "written_on", :prompt => { :day
=> ''Select day'',
:month => ''Select month''}, :discard_year=>true)%>

It works.
But there is problem with the number of days for each month.
The days combobox has populated with the days from 1 to 31, but it is
not right in case of the month "Feb" as well as the months which has
the
number of days are 30.

Is there a way to solve this problem? so that clicking on the month name
the corresponding days will change.

Thanks,
Tushar

--
Posted via http://www.ruby-forum.com/.

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at