# Will\_paginate & vote\_fu

**URL:** <https://www.ruby-forum.com/t/will-paginate-vote-fu/163718>\
**Category:** Rails\
**Created:** [March 24, 2009, 10:28am UTC](https://www.ruby-forum.com/t/will-paginate-vote-fu/163718 "2009-03-24T10:28:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chimorito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/54ee81/32.png) [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Post date:** [March 24, 2009, 10:28am UTC](https://www.ruby-forum.com/t/will-paginate-vote-fu/163718/1 "2009-03-24T10:28:46Z")

</div>

Hi, first at all sorry if my english is not the best.

I’m trying to include the plugin vote\_fu to my aplication following  
these steps [GitHub - peteonrails/vote\_fu: Vote and Karma Management](http://github.com/peteonrails/vote_fu/tree/master).

I install the plugin and i run the migration. It rules perfectly:

# == 20090324090130 VoteFuMigration: migrating

# – create\_table(:votes, {:force=\>true}) → 0.0801s – add\_index(:votes, [“voter\_id”, “voter\_type”], {:name=\>“fk\_voters”}) → 0.0404s – add\_index(:votes, [“voteable\_id”, “voteable\_type”], {:name=\>“fk\_voteables”}) → 0.0359s == 20090324090130 VoteFuMigration: migrated (0.1569s)

I want that users can vote the videos. In the models:

class Video \< ActiveRecord::Base  
acts\_as\_voteable  
end

class Usuario \< ActiveRecord::Base  
acts\_as\_voter  
end

But when i try to launch localhost it shows me this error:

NameError (undefined local variable or method `acts_as_voter' for #<Class:0x33623bc>): /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/base.rb:1672:in `method\_missing\_without\_paginate’  
/vendor/plugins/will\_paginate/lib/will\_paginate/finder.rb:167:in  
`method_missing' /app/models/usuario.rb:4 /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:216:in `load\_without\_new\_constant\_marking’  
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active\_support/dependencies.rb:216:in  
`load_file' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in `new\_constants\_in’  
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active\_support/dependencies.rb:215:in  
`load_file' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:96:in `require\_or\_load’  
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active\_support/dependencies.rb:261:in  
`load_missing_constant' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:468:in `const\_missing’  
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active\_support/dependencies.rb:480:in  
`const_missing' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:486:in `send’  
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active\_support/dependencies.rb:486:in  
`const_missing' /app/controllers/web_controller.rb:13:in `home’  
.  
.  
.

There isn’t compatibility between this two plugins??. I’m tryin to find  
any solution in google, but there’s no information :((.

Anybody can help me please

---

<div class="post-metadata">

**Author:** ![chimorito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/54ee81/32.png) [@chimorito](https://www.ruby-forum.com/u/chimorito)\
**Post date:** [March 24, 2009, 12:43pm UTC](https://www.ruby-forum.com/t/will-paginate-vote-fu/163718/2 "2009-03-24T12:43:01Z")

</div>

I have reboot the server and there’s no error
