Acts_as_rateable in rails 2.2.0

Hi all,

I have a problem with acts_as_rateable in rails 2.2.0.

[code=]ActionView::TemplateError (uninitialized constant
<#object>::Rating) on line #10 of app/views/blah/blah.html.erb:

/Library/Ruby/Gems/1.8/gems/activesupport-2.2.0/lib/active_support/dependencies.rb:102:in
const_missing' /Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/base.rb:2042:incompute_type’
/Library/Ruby/Gems/1.8/gems/activesupport-2.2.0/lib/active_support/core_ext/kernel/reporting.rb:11:in
silence_warnings' /Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/base.rb:2038:incompute_type’
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/reflection.rb:151:in
send' /Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/reflection.rb:151:inklass’
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/reflection.rb:182:in
quoted_table_name' /Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/associations/has_many_association.rb:91:inconstruct_sql’
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/associations/association_collection.rb:21:in
initialize' /Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/associations.rb:1289:innew’
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.0/lib/active_record/associations.rb:1289:in
`ratings’[/code]
This happens only in production mode. Not in development mode.

Any ideas???

Vipin

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