search for: g38qtxvhakll57midrcfdg

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

2010 Jun 03
2
creating fixtures for has_many :through
...==== I understand that you cannot directly add roles in a user fixture, i.e. the following does NOT work: ==== file: fixtures/roles.yml administrator: name: administrator user: name: user guest: name: guest ==== file: fixtures/users.yml superuser: name: "Superuser" email: root-G38qTXvhaKll57MIdRCFDg@public.gmane.org roles: administrator, user ==== ... since YAML will try to directly write to the nonexistent user.roles column. But I WOULD expect that you could write a user_roles.yaml file to make explicit associations, along the lines of: ==== file: fixtures/roles.yml administrator: name...