Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

The last remix 1 is not working in the README example code. #3

Open
gugod opened this issue Sep 16, 2010 · 0 comments
Open

The last remix 1 is not working in the README example code. #3

gugod opened this issue Sep 16, 2010 · 0 comments
Milestone

Comments

@gugod
Copy link
Contributor

gugod commented Sep 16, 2010

Hi,

I try to run the example code in the README.rdoc and found it failed from dm-core:

/usr/local/Cellar/ruby-enterprise-edition/2010.02/lib/ruby/gems/1.8/gems/dm-core-1.0.2/lib/dm-core/associations/relationship.rb:173:in `target_model': Cannot find the child_model VideoCommentVotes for User in video_comment_votes (NameError)

The code actually used is here: http://gist.github.com/582753

If I change line 85 to remix n like:

remix n, :votes, :for => "User"

Then it worked. The migration is finished and the created tables seems to be correct for me.

I discovered this when I was playing with dm-is-remixable and remix 1 was never working in there. It was a direct, non-nested remix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant