GithubHelp home page GithubHelp logo

Comments (5)

Bahanix avatar Bahanix commented on August 16, 2024

jquery-star-rating-rails seems not compatible with turbolink.

from jquery-star-rating-rails.

RichGuk avatar RichGuk commented on August 16, 2024

That would make sense. In all honesty, I don't use this jquery plugin anymore and I don't use turbolinks. So I'm only accepting pull request. If someone wishes to take over this gem they are more than welcome; I'll update the README to mention this.

However, as @Bahanix mentions the issue looks like turbo links, I think you'll need to trigger the rating plugin's code again, i.e. $('input.things').rating(), after turbo links loads the new content. I'm unsure how Rails handles this, but this seems to me like it'd be a common requirement, exactly for situations like this.

from jquery-star-rating-rails.

 avatar commented on August 16, 2024

Right. After downgrading to Rails 3.2.12 it works as expected. thanks a lot. Have no time to dig it deeper for Rails 4.

from jquery-star-rating-rails.

RichGuk avatar RichGuk commented on August 16, 2024

Fair enough. You can easily disable turbo links by the way.

http://blog.steveklabnik.com/posts/2013-06-25-removing-turbolinks-from-rails-4

from jquery-star-rating-rails.

 avatar commented on August 16, 2024

Awesome !

from jquery-star-rating-rails.

Related Issues (5)

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.