Appu
2010-Aug-10 08:54 UTC
undefined method `has_many'' for Object:Class +Savage Beast 2.3 plugin
Hi, i am using Savage Beast 2.3 plugin for the forum and i got and error undefined method `has_many'' for Object:Class C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb: 9:in `included'' C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb: 7:in `class_eval'' C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb: 7:in `included'' C:/forum/app/models/user.rb:2:in `include'' C:/forum/app/models/user.rb:2 C:/forum/app/controllers/users_controller.rb:16:in `create'' please help me to resolve this problem. Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Chris Mear
2010-Aug-10 09:51 UTC
Re: undefined method `has_many'' for Object:Class +Savage Beast 2.3 plugin
On 10 August 2010 09:54, Appu <rupaknitd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, i am using Savage Beast 2.3 plugin for the forum and i got and > error > > > undefined method `has_many'' for Object:Class > > C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb: > 9:in `included'' > C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb: > 7:in `class_eval'' > C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb: > 7:in `included'' > C:/forum/app/models/user.rb:2:in `include'' > C:/forum/app/models/user.rb:2 > C:/forum/app/controllers/users_controller.rb:16:in `create'' > > > please help me to resolve this problem.Does your User class inherit from ActiveRecord::Base? Chris -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2010-Aug-10 11:08 UTC
Re: undefined method `has_many'' for Object:Class +Savage Beast 2.3 plugin
On 10 August 2010 09:54, Appu <rupaknitd-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, i am using Savage Beast 2.3 plugin for the forum and i got and > error > > > undefined method `has_many'' for Object:Class > > C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb: > 9:in `included'' > C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb: > 7:in `class_eval'' > C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb: > 7:in `included'' > C:/forum/app/models/user.rb:2:in `include'' > C:/forum/app/models/user.rb:2 > C:/forum/app/controllers/users_controller.rb:16:in `create''Showing us the code around this line might be useful. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.