Links
acts_as_rateable
Categories
acts_as_rateable
Adds acts_as_rateable functionality to ActiveRecord models, which allows you to associate a rating with any model, which you can then use for searching, sorting, etc.
Vitals
| Home | http://rateableplugin.rubyforge.org |
|---|---|
| Repository | svn://rubyforge.org/var/svn/rateableplugin/trunk |
| License | Rails' (MIT) |
| Rating | (644 votes) |
| Owner | Chris Ingrassia |
| Created | 23 June 2006 |
Comments
-
There's also similar plugin at http://rubyforge.org/projects/ratable/
-
this plugin does not scale well. to calculate the ratings, it has to first look up all the ratings for the item, then add them up! if you had to list items by ratings, you would effectively have to do this for each item being rated!! you really need a separate column in the table for the item being rated that gets updated every time it gets rated
-
Hey, how do we paginate the search on say top rated objects. That rails paginate don't support group option.
-
Those looking for this kind of functionality but with cached values (like vince) should look at the other plugin acsasrated.
-
Hi,
Do we have Rails 2.1 compatible version of actsasrateable? Please let me know how to make it compatible: right now it bails out throwing: ArgumentError (The :dependent option expects either :destroy, :delete_all, or :nullify (true)):
Regards, Sandeep G
-
Got same problem like Sandeep, help anybody?
-
Fix to have actsasrateable working with rails 2.1
Edit actsasrateable.rb :
Make the dependent option as :nullify instead of :true (has_many :ratings, :as => :rateable, :dependent => :nullify )
