Forum: Ruby on Rails acts_as_rateable in rails 2.2.0

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
30e4c9142032f31df2fe0d20672a4c2e?d=identicon&s=25 Vipin Vm (vmvipin)
on 2008-11-03 13:32
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:in
`compute_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:in
`compute_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:in
`klass'
/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:in
`construct_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:in
`new'
/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 topic is locked and can not be replied to.