Hi,
I'm localizing my rails 2.2.2 application using i18n.
In my form(view) I have:
<%= date_select :range,:start_date,:order => [:month,:day,:year]%>
In environment.rb I have:
I18n.default_locale = 'en-US'
and in en-US.rb its:
I18n.backend.store_translations 'en-US',
:date => {
:order => [:month, :day, :year],
:month_names => %w[Jan Feb Mar Apr May Jun Jul Aug Spt Oct Nov Dec]
}
My problem is that the date select options are not proper.
Instead of month names in the drop down I get some 12 numeric
values...!!!!! as 110,32,111,115..etc...
How should I solve this???
Please help...
Thank You...
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---