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
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1235:in
`method_missing''
app/models/jclass.rb:2
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
acts_as_rateable
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"
end[/code]
and heres the list method in the upload controller:
[code=]def list
@jclass_pages, @jclasses = paginate :jclasses, :per_page => 10
end[/code]
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---