Forum: Ruby on Rails acts_as_ratable method not found

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Fb242e9f597cd63341646f07f5c26bf5?d=identicon&s=25 Amir Shah (amoo3)
on 2007-06-03 18:08
After i install the acts_as_ratable plugin, my app says

[code=]NameError in UploadController#list

undefined local variable or method `acts_as_rateable' for Jclass:Class
RAILS_ROOT: script/../config/..

Application Trace | Framework Trace | Full Trace
app/controllers/upload_controller.rb:12:in `list'[/code]
I've tried installing the plugin from 2 diffrent places, neither seem to
fix the issue. Here my model code

[code=]class Jclass < ActiveRecord::Base
  file_column :file
  belongs_to :user
  acts_as_ferret :fields => [:author, :title, :description]
  acts_as_textiled :description
  validates_presence_of :title, :description, :file
  validates_uniqueness_of :title
  has_many :jcomments
  validates_format_of :file,
                     :with => %r{\.(java|jar|zip)$}i,
                    :message => "must be a .java, .jar or .zip file"

and heres the list method in the upload controller:

[code=]def list
    @jclass_pages, @jclasses = paginate :jclasses, :per_page => 10
Fb242e9f597cd63341646f07f5c26bf5?d=identicon&s=25 Amir Shah (amoo3)
on 2007-06-04 19:46
This topic is locked and can not be replied to.