Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefine method in _ct rails g closure_tree:migration <modelname> #131

Closed
santu-git opened this issue Oct 17, 2014 · 5 comments
Closed

undefine method in _ct rails g closure_tree:migration <modelname> #131

santu-git opened this issue Oct 17, 2014 · 5 comments

Comments

@santu-git
Copy link

rails g closure_tree:migration category stopped with following error
/usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in method_missing': undefined method_ct' for #Class:0xb8753358 (NoMethodError)

@santu-git santu-git changed the title undefine method in closure_tree:migration undefine method in _ct rails g closure_tree:migration <modelname> Oct 17, 2014
@seuros
Copy link
Member

seuros commented Oct 17, 2014

Can you try this PR #129
please ?

On 17 October 2014 07:26, santu-git notifications@github.com wrote:

rails g closure_tree:migration category stopped with following error
/usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in
method_missing': undefined method_ct' for #Class:0xb8753358
(NoMethodError)


Reply to this email directly or view it on GitHub
#131.

@mceachen
Copy link
Collaborator

Thanks for reporting the issue. I'll try to reproduce with 3.2.x this
weekend.
On Oct 17, 2014 12:26 AM, "santu-git" notifications@github.com wrote:

rails g closure_tree:migration category stopped with following error
/usr/local/lib/ruby/gems/2.0.0/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in
method_missing': undefined method_ct' for #Class:0xb8753358
(NoMethodError)


Reply to this email directly or view it on GitHub
#131.

@JohnSmall
Copy link

I had that problem too. Rather than rush ahead and create the migration for the hierarchy table, you have to follow the steps in the instructions exactly in the order specified. You must add 'acts_as_tree' to your model before creating the hierarchy table. If you do that, then it'll run ok.

@richhollis
Copy link

@JohnSmall +1

@santu-git
Copy link
Author

Sorry guys I was out of synch with you for few days. Thanks for your help.

@mceachen mceachen closed this as completed Sep 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants