On Feb 23, 10:14 pm, Valery Kvon <[email protected]> wrote:
> On 24.02.2012, at 1:12, Alex Duck wrote:
>
> > On Feb 23, 9:42 pm, Valery Kvon <[email protected]> wrote:
> >> On 24.02.2012, at 0:26, Alex Duck wrote:
>
> >>>    phones:
> >>>      - (123) 456-7890
> >>>      - +1987654321
> >>>      - 1-890-123-456
>
> >> Try to quote them
>
> > Quote them how? Can you give an example please?
>
> something like:
>
>    phones:
>      - "(123) 456-7890"
>      - "+1987654321"
>      - "1-890-123-456"

Sorry, I made a mistake in my example. You are correct, of course. In
my above example, quoting is needed, of course.

So given this YAML, how can I get to any specific element in the array
by calling Rail's t() helper only?

en:
  contact_page:
    title: Contact us
    phones:
      - "(123) 456-7890"
      - "+1987654321"
      - "1-890-123-456"

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