Hi,

I made a little test with your code, and made it work with a few
modifications. The sources are here for the models (http://
gist.github.com/76592), and here for the rspec test (http://
gist.github.com/76593) I used to make sure all would work well.

I removed the belongs_to of Question to :user, since all you need is a
"has, n through", and in the Interest model I removed the foreign key
ids, for they are not necessary when you use the belongs_to properly.
The child_key is also unnecessary. I removed the User model so I could
do the tests quickly, but it should work without any problem.

Hope it helps.

Cheers,
Rafael
www.rafaelrosafu.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to datamapper@googlegroups.com
To unsubscribe from this group, send email to 
datamapper+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to