The finder call to the DB is redundant. How about you save yourself the trip
to the db and just do

one-en:
  id: <%= Fixtures.identify(:one) -%>
  locale: en
  name: cars



On Sun, Mar 29, 2009 at 9:15 AM, Heinz Strunk <
[email protected]> wrote:

> Oh, I thought I could call that fixture from the other file directly so
> I guess the only thing I can do is
>
> category_translations.yml
> one-en:
>  id: <%= Category.find_by_id(Fixtures.identify(:one)) %>
>  locale: en
>  name: Cars
>
> one-es:
>  id: <%= Category.find_by_id(Fixtures.identify(:one)) %>
>  locale: es
>  name: Coches
> ...?
> --
> 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 [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