Hi,
I have this in my view,
<%= date_select(‘Case’, ‘date_from’,
:end_year => 1990, :start_year =>Date.today.year,
:discard_day => true,
:include_blank => true,
:order => [:month, :year])%>
if only month is chosen and not year, then i have problems reloading it.
Lets say i chose July as month and leave year empty.
When I render the new again (say for an active record error), year will
be 2007 (please note that 7 is taken from july . I it take 2005 for May)
and month is shown as January.
Any idea how to solve this?
Regards.
Sandeep G