Comments (4)
I think it has something to do with the version number. I submitted a pull request that fixed this and it was merged, but the changes didn't pull down to my local repo when installing 0.8.0. Maybe a new version number needs to be added to include the most recent commits? I'm not exactly sure how that works...
In the meantime you can use my fork which fixed the vote_weight issue:
https://github.com/mnort9/acts_as_votable
On Dec 17, 2013, at 6:02 AM, Rahul P. Chaudhari [email protected] wrote:
I am getting following error on version 0.8.0
MethodError (undefined method `vote_weight=' for #ActsAsVotable::Vote:0x00000008f70488)
on
@comment.liked_by @user
But same thing is working in 0.7.1
Any specific change do I need to do?
—
Reply to this email directly or view it on GitHub.
from acts_as_votable.
It's because someone submitted a PR that changed the database table. Please make sure your votes table looks like this: https://github.com/ryanto/acts_as_votable/blob/master/lib/generators/acts_as_votable/migration/templates/active_record/migration.rb#L10
You're probably missing the vote_weight column which was recently added.
from acts_as_votable.
@ryanto Great that worked well! 👍
from acts_as_votable.
@ryanto What do you think mention this issue or add some documentation on README? I can do a PR for that.
Are you following semver on acts_as_votable?
from acts_as_votable.
Related Issues (20)
- Using with UUID's as primary key HOT 1
- N+1 problem with my voters votes. HOT 7
- acts_as_votable issue HOT 5
- CHANGELOG HOT 2
- current_user.voted_for? @post returns false regardless of vote HOT 1
- acts_as_votable_options somehow became nil HOT 5
- How do I get vote weight for a previous vote HOT 1
- Migration Generator on Rails 6 HOT 9
- 0.12.0 => 0.12.1 version upgrade is a bit painful HOT 3
- Destroying voter does not update cached values in votable HOT 2
- undefined local variable or method `acts_as_votable' HOT 4
- Deprecation warning when returning within an ActiveRecord transaction in Rails 6.1
- Update CI matrix HOT 3
- acts_as_votable not compatible with Rails 6.1? HOT 1
- Add news attributes model Vote HOT 1
- Multiple different reactions? HOT 3
- cached_votes_total doesn't update during factory bot tests
- Conflict with active_admin_role gem
- Could not find table "votes"
- How to override the act_as_votable gem table votes in my applicatio
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acts_as_votable.