Giter Club home page Giter Club logo

Comments (4)

mnort9 avatar mnort9 commented on July 20, 2024

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.

ryanto avatar ryanto commented on July 20, 2024

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.

abhishek77in avatar abhishek77in commented on July 20, 2024

@ryanto Great that worked well! 👍

from acts_as_votable.

rodrigopinto avatar rodrigopinto commented on July 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.