> >> Fixtures.identify(:one) > => 953125641 > >> Fixtures.identify(:two) > => 996332877 > Frederick Cheung wrote: > On Mar 28, 6:34�pm, Heinz Strunk <[email protected]> > wrote: >> Um well... I use two different yml-files so it doesn't find the >> identifiers from the other files. How do I tell him to look in the other >> one? > > It doesn't need to - the value of Fixture.identify(foo) depends only > on foo itself (that's the whole point: being able to predict what id a > fixture with a given label will have). > > Fred
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 -~----------~----~----~----~------~----~------~--~---

