Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delocalize in Production #61

Closed
gitmijn opened this issue May 14, 2013 · 2 comments
Closed

Delocalize in Production #61

gitmijn opened this issue May 14, 2013 · 2 comments

Comments

@gitmijn
Copy link

gitmijn commented May 14, 2013

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' )} %>
@gitmijn
Copy link
Author

gitmijn commented May 14, 2013

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".

@gitmijn gitmijn closed this as completed May 14, 2013
@clemens
Copy link
Owner

clemens commented May 15, 2013

Doesn't seem it's possible to delete it. So yeah, it would be great if you could rename it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants