DISQUS

DISQUS Hello! Pete On Rails is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Announcing VoteFu

Started by peteonrails · 11 months ago

VoteFu is a voting mixin that allows you to extend your models to vote on one another. Largely based on Cosmin Radoi’s acts_as_voteable plugin, VoteFu adds named_scope support, a set of generators to make using the plugin easier, a :polymorphic association to the voting class (so you can have more than one model type [...] ... Continue reading »

1 comment

  • Hey Pete, loving this plugin. I used it to get this site up and running quite quickly: http://buyersvote.com

    So thanks for contributing it!

    One comment I wanted to share: one more feature I was able to add is the ability for people to vote on votes! This sounds weird, but it's what they do on Amazon.com where they ask you, was this review helpful? yes or no

    Anyway, I tried adding acts_as_voteable to vote.rb and at first it didn't work. But I was able to get it working by adding these two lines at the top:

    require 'acts_as_voteable'
    ActiveRecord::Base.send(:include, Juixe::Acts::Voteable)

    Anyway, thanks again!

Add New Comment

Returning? Login