[LRUG] Test does not load many to many fixture

Matthew Rudy Jacobs matthewrudyjacobs at gmail.com
Wed Feb 10 09:15:52 PST 2010


I like fixtures.
As a base to expand on they can be wonderful.

But I never use habtm, so haven't had this problem.

On 11 Feb 2010 01:11, "Tom Stuart" <tom at experthuman.com> wrote:

On 10 Feb 2010, at 17:07, Riccardo Tacconi wrote:
> Actually it is not working for me:
> role_id ...
For this to work you have to let Rails generate the primary key for your
fixtures, i.e. don't provide any ids in your roles.yml.

But, as others have said, your time would be better spent migrating away
from fixtures entirely rather than investing any more in getting them to
work.

Cheers,
-Tom

_______________________________________________
Chat mailing list
Chat at lists.lrug.org
http://lists.l...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20100211/22634926/attachment-0003.html>


More information about the Chat mailing list