Plugins - acts_as_rateable

StarAdd to favorites

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.

Chris Ingrassia

http://rateableplugin.rubyforge.org

svn://rubyforge.org/var/svn/rateableplugin/trunk

Rails' (MIT)

  • Currently 3.8/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Model

Tags

Comments

Add a comment
Greg Ball 28 Jul 2008

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 )

Dolný Kubín 14 Jul 2008

Got same problem like Sandeep, help anybody?

Sandeep 3 Jul 2008

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

Marc-André 15 Jan 2008

Those looking for this kind of functionality but with cached values (like vince) should look at the other plugin acs_as_rated.

sandeep 3 Dec 2007

Hey, how do we paginate the search on say top rated objects. That rails paginate don't support group option.

vince 21 Oct 2007

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

ctran 20 Jul 2006

There's also similar plugin at http://rubyforge.org/projects/ratable/

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?