On Oct 7, 8:51 am, bingo bob <[email protected]> wrote:
> I'm try this groovy i18n stuff for formatting my dates in UK format.
>
> Console tests seem to show me I have it configured properly but I'm not
> 100%.
>
> How do I set up the app so that in a view when I do
>
> <%= Person.first.birthday %>
>
> it shows in UK format as specified in my i18 config file. Currently it's
> ignoring it.
>
> I have to explicitly tell the view to use the i18 config for it to work.
>
> What am I missing here or is this intended behaviour?

Use I18n.l (short for I18n.localize, also available as just l in
views)

Fred
> --
> Posted viahttp://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.

Reply via email to