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:inclass_eval’
C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb:
7:in included' C:/forum/app/models/user.rb:2:ininclude’
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

On 10 August 2010 09:54, Appu [email protected] wrote:

C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb:
7:in included' C:/forum/app/models/user.rb:2:ininclude’
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

On 10 August 2010 09:54, Appu [email protected] wrote:

C:/forum/vendor/plugins/savage-beast/lib/savage_beast/user_init.rb:
7:in included' C:/forum/app/models/user.rb:2:ininclude’
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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs