search for: some_cat

Displaying 1 result from an estimated 1 matches for "some_cat".

Did you mean: some_call
2006 Jun 12
0
Maintain foreign key linkages in fixtures...
Is there anyway to refer to the entities being linked in a foreign key field of a fixture by name instead of id? Ie, if I have categories.yml some_cat: id: 1 name: Foo other_cat: id: 2 name: Bar data.yml some_item: id: 1 category_id: <%= categories(:some_cat).id %> name: Hello World The above doesn''t work due to scope, even if the fixtures are loaded in the proper order. But I think it illustrates what I''...