I''m using select_date to display combo boxes with a date selection and
I would like to change the selected date to be a day or a week from
now.
<%= select_date (Date.today + 1), :prefix =>
''start_date'' %>
<%= select_date (Date.today + 7), :prefix =>
''start_date'' %>
Results in today''s date being used
<%= select_date (Date.today + 1), :prefix => ''end_date''
%>
<%= select_date (Date.today + 7), :prefix => ''end_date''
%>
Results in tomorrow''s date being used. For some reason if the prefix
includes ''start'' the date is today otherwise it ends up being
tomorrow
but in all the cases it appears that the passed date is ignored.
select_day however behaves as expected
<%= select_day (Date.today + 1), :prefix => ''end_date''
%> => combo
with tomorrow selected
<%= select_day (Date.today + 7), :prefix => ''end_date''
%> => combo
with the day for one week from now selected
Has anybody else noticed this? Is this just a bug or am I missing
something?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---