wazery/ratyrate

Turbolinks now rendering on show page

Ruegen opened this issue · 1 comments

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 commented

This worked pretty well for me, Thanks!