Acts As Ratable plugin

Plugin details

An ActiveRecord mixin that provides rating capabilities to a given model. Useful for community-driven applications.

Websitehttp://rubyforge.org/projects/ratable/ Repositorysvn://rubyforge.org/var/svn/ratable/trunk Author Bruce Williams Tags rating LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install svn://rubyforge.org/var/svn/ratable/trunk

exposes these methods:
------------------------

average_rating
raters
rating_by( by_opt )
rate_as(rating, opts={})



Simple Example:

class PopularRater < ActiveRecord::Base
  #attribute title
  acts_as_ratable
end

# In your controller
PopularRater.find_by_name("popular").rate_as(1, [:by="anonymous"]);


Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (1 older version) | Last edited by: scott, about 1 year ago