Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turbolinks now rendering on show page #128

Open
Ruegen opened this issue Aug 30, 2016 · 1 comment
Open

Turbolinks now rendering on show page #128

Ruegen opened this issue Aug 30, 2016 · 1 comment

Comments

@Ruegen
Copy link

Ruegen commented Aug 30, 2016

Navigating from an index page to a show page won't render the star rating.

I loads after a refresh only because of Turbolinks.

Rather than disable Turbolinks I added to your app/assets/javascripts/raterate.js.erb file

Note: I am using the gem pulled from the github.

$(document).on('turbolinks:load',initstars);

not sure if it is a good suggested fix...

@IsaCR
Copy link

IsaCR commented Aug 13, 2017

This worked pretty well for me, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants