This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
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 Development * http://dev.pluginaweek.org/browser/trunk/has_ratings Source * http://svn.pluginaweek.org/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] To run against a specific version of Rails: rake test RAILS_FRAMEWORK_ROOT=/path/to/rails == Dependencies * Rails 2.1 or later * plugins_plus[http://wiki.pluginaweek.org/Plugins_plus] * acts_as_enumeration[http://wiki.pluginaweek.org/Acts_as_enumeration]








