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

MIT License
Permitted

Commercial Use

Modify

Distribute

Sub-License

Private Use

Forbidden

Hold Liable

Required

Include Copyright

Include License

These details are provided for information only. No information here is legal advice and should not be used as such.

All Licenses

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
  • ...
    by exploring contributors within projects, you can view details on every commit they have made to that project
  • ...
    in 2016, 47% of companies did not have formal process in place to track OS code
  • ...
    learn about Open Hub updates and features on the Open Hub blog

 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