Ralph Shnelvar wrote:> In
> ruby\lib\ruby\gems\1.8\gems\actionpack-2.3.5\lib\action_view\locale\en.yml
> I see
>
> activerecord:
> errors:
> template:
> header:
> one: "1 error prohibited this {{model}} from being
saved"
> other: "{{count}} errors prohibited this {{model}} from
being
> saved"
> # The variable :count is also available
>
>
> Where does "model" come from? Where can I find documentation
about how
> RoR (Ruby?) interacts with *.yml files.
I think you''re asking the wrong question. The interpolation of
{{model}} has nothing to do with Ruby''s handling of YAML, but is rather
part of Rails'' I18N routines. Check their docs for more.
And consider fast_gettext for I18N instead. It''s a lot nicer than
Rails'' built-in system.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org
--
Posted via http://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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.