When migrating a current project from GetText to i18n the
following exception was thrown when using the date_select
helper:
can't convert Symbol into String
Example:
When in your application you have set the I18n.locale to
something different than "en" and you have the following simple
code in your view:
<%= date_select("user_info", "birthdate") %>
You'll get the can't convert Symbol into
String for the date_select helper. The
problem can be rescued by giving the date_select helper order like
this:
<%= date_select("user_info", "birthdate", :order => [:day,:month,:year]) %>
or by doing order in the yml file
usually located at config/locales/your_lang.yml like this
date:
formats:
default: ""
long: ""
short: ""
order: [ :day, :month, :year ]