Delocalize in Production
gitmijn opened this issue · comments
Delocalize continues to work well for me in production.
I am using Delocalize on a date column with my yaml configured like so:
date:
input:
formats:
- :default
- :long
- :short
formats:
default: ! '%d/%m/%Y'
long: ! '%B %d, %Y'
short: ! '%b %d'
placeholder:
default: 'dd/mm/yyyy'
I am using simple_form and I am initializing the input like so:
<%= f.input :birth_date,
as:'string',
label:"DOB",
input_html: {include_blank:true,
value: date_format(f.object.birth_date),
class: "datepicker",
placeholder: ( t 'date.placeholder.default' )} %>
Sorry. This is not an issue with the gem. There was a setter method in one of my models that was fighting delocalize. I would like to erase this so other don't find the issue and get confused. Please let me know if you would like me to edit the issue to "blank".
Doesn't seem it's possible to delete it. So yeah, it would be great if you could rename it. :)