Starting out with vote_fu
Posted
by zizee
on Stack Overflow
See other posts from Stack Overflow
or by zizee
Published on 2010-05-30T12:47:43Z
Indexed on
2010/05/30
12:52 UTC
Read the original article
Hit count: 248
ruby-on-rails
|ruby-on-rails-plugins
Hi All,
Trying my luck with the vote_fu rails plugin. The functionality looks like exactly what I need for a project of mine, but I have hit a roadblock. I have followed the github readme to the letter, installing it as a plugin.
I have put acts_as_voteable on my "Event" model and acts_as_voter on my User model. In the console, when I try:
>> event.votes
or
>> user.votes
it successfully returns an empty array.
but when I try to do the following:
user.vote_for(event)
I get
"NoMethodError: undefined method `user_id' for #<Vote:0x7f5ed4355540>"
Any ideas? I'm probably just missing something obvious, but maybe something is missing from the plugin's readme.
Thanks.
© Stack Overflow or respective owner