0
I Use This!
Activity Not Available

Project Summary

acts_as_voteable allows you to mix voting into your models:

Post < ActiveRecord::Base
  acts_as_voteable
end

User < ActiveRecord::Base
  acts_as_voter
end

#simple vote
user.vote_up(post)
user.vote_down(post)

#vote about something:
user.vote_up(post, :about => 'spam')

#check for a vote
user.voted_up?(post)

#count votes:
user.votes.count
user.up_votes.count
user.down_votes.count

#points (up - down)
user.points

#coming soon
user.points(:about => 'spam')

#sorting - works just like find from AR with a few changes
Post.find_top(:all, :since => 1.day.ago, :about => 'spam')

There are also generators for tests so you can verify that you installed correctly:
script/generate acts_as_voteable_test post

installation:
script/install plugin http://richcollins.net/svn/acts_as_voteable/

Send feedback to richcollins@gmail.com

Enjoy!

Tags

acts_as_voteable plugins ruby rubyonrails

In a Nutshell, actsasvoteable...

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    check out hot projects on the Open Hub
  • ...
    nearly 1 in 3 companies have no process for identifying, tracking, or remediating known open source vulnerabilities
  • ...
    anyone with an Open Hub account can update a project's tags

 No code available to analyze

Open Hub computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has no code locations, and so Open Hub cannot perform this analysis

Is this project's source code hosted in a publicly available repository? Do you know the URL? If you do, click the button below and tell us so that Open Hub can generate statistics! It's fast and easy - try it and see!

Add a code location

Community Rating

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!
Sample ohloh analysis