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) |
| Tags |
a1 a1, a2, aaaaaaaaaaa acs_as_rated activerecord acts_as_rateable acts_as_rated adfasfd afdasdf asfdafds borked Chankas fg fgdfgdf ghdbh gud ratable rate rateable rated rating redbox star super tyu wonderful zurpit zz
|
| Rating | (550 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 acs_as_rated.
-
Hi,
Do we have Rails 2.1 compatible version of acts_as_rateable? 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 acts_as_rateable working with rails 2.1
Edit acts_as_rateable.rb :
Make the dependent option as :nullify instead of :true (has_many :ratings, :as => :rateable, :dependent => :nullify )

