to use a localized version of a non localized version when rendering?
Closed this issue · 2 comments
zbenmo commented
If I use the original object in a view, I don't get it localized.
If I use the localized object, I get (as indeed it is a string rather than a date):
undefined method `year' for "02/02/1917":String
Not sure what what can be done about it?
carlosantoniodasilva commented
Which field are you trying to render in the view? If you're using a normal input field, it should work as normal, it'd not work with a date select field from Rails though.
zbenmo commented
Thanks
On Saturday, January 4, 2014, Carlos Antonio da Silva wrote:
Which field are you trying to render in the view? If you're using a normal
input field, it should work as normal, it'd not work with a date select
field from Rails though.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-31577087
.