Has Ratings plugin

Plugin details

Storing ratings is a pretty common task when building web applications with a community-based focus. Ratings can have names and values associated with them. This plugin demonstrate a simple way to manage what ratings can be used and how they are persisted.

Websitehttp://wiki.pluginaweek.org/index.php/Has_ratings Repositoryhttp://svn.pluginaweek.org/trunk/has_ratings/ Author Aaron Pfeifer Tags rating LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.pluginaweek.org/trunk/has_ratings/

Note that this is a reference implementation and, most likely, should be modified for your own usage.

Example
=========

  user = User.find(1)
  video = Video.find(1)
  
  video.ratings.create(:rater => user, :value => :poor)

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 6 months ago