Comments (5)
jquery-star-rating-rails seems not compatible with turbolink.
from jquery-star-rating-rails.
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.
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.
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.
Awesome !
from jquery-star-rating-rails.
Related Issues (5)
- Additional Documentation? HOT 1
- Improve usage in README
- Including jquery.MetaData HOT 3
- jquery 1.9 HOT 4
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 jquery-star-rating-rails.