Agile Web Development

Build it. Launch it. Love it.

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 Tag_red a1 a1, a2, aaaaaaaaaaa acs_as_rated activerecord acts_as_rateable acts_as_rated adfasfd afdasdf asfdafds borked Chankas fg fgdfgdf ghdbh gud plugin rails ratable rate rateable rated rating redbox star super tyu wonderful zurpit zz
Rating (592 votes)
Owner Chris Ingrassia
Created 23 June 2006

Comments

  • ctran
    20 July 2006

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

  • vince
    21 October 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

  • Avatar
    sandeep
    3 December 2007

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

  • 15 January 2008

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

  • Avatar
    Sandeep
    3 July 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

  • Avatar
    14 July 2008

    Got same problem like Sandeep, help anybody?

  • Greg Ball
    28 July 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 )

Add a comment