public
Description: Demonstrates a reference implementation for handling ratings
Homepage: http://www.pluginaweek.org
Clone URL: git://github.com/pluginaweek/has_ratings.git
obrie (author)
Fri May 09 18:01:47 -0700 2008
commit  24ede3531576536954de709bfdbad3610bb73185
tree    5b39d734802b9897b84a5b3be2a4afa7292eea58
parent  2cb6d6e1ad009ababa66f7478535f7af25140e37
name age message
file CHANGELOG Loading commit data...
file MIT-LICENSE
file README
file Rakefile
directory app/
directory assets/ Fri May 09 17:53:29 -0700 2008 Rename RatingName to RatingValue and use acts_a... [obrie]
directory db/
file init.rb Fri May 09 17:53:29 -0700 2008 Rename RatingName to RatingValue and use acts_a... [obrie]
directory lib/
directory test/
README
== has_ratings

+has_ratings+ demonstrates a reference implementation for handling ratings.

== Resources

Wiki

* http://wiki.pluginaweek.org/Has_ratings

API

* http://api.pluginaweek.org/has_ratings

Source

* http://svn.pluginaweek.org/trunk/has_ratings

Development

* http://dev.pluginaweek.org/browser/trunk/has_ratings

== Description

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.

== Usage

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)

== Testing

Before you can run any tests, the following gem must be installed:
* plugin_test_helper[http://wiki.pluginaweek.org/Plugin_test_helper]

== Dependencies

* plugins_plus[http://wiki.pluginaweek.org/Plugins_plus]
* acts_as_enumeration[http://wiki.pluginaweek.org/Acts_as_enumeration]