Open wazery opened 10 years ago
Using jQuery Turbolinks gem, I was able to get around this problem. Still it'd be great to have a permanent fix.
you don't have to use another gem to achieve this, a little hack to ' letsrate.js.erb ' will do the trick.
``` javascript
//before
$(function(){
// original $.('.start') event binder
})
//after
$(document).on("page:change",function(){
// original $.('.start') event binder
}
@Nxbtch Can you issue a PR with this?
@wazery glad to help
Well... I fix this problem File: ratyrate.js.erb Line6: $(document).on("ready page:load",function(){ //replace with this code
In my case, this was the solution... File: ratyrate.js.erb Line6: $(document).bind('ready ajaxComplete', function(){ //replace with this code
Issue by rooshdi Thursday Jun 05, 2014 at 19:08 GMT Originally opened as https://github.com/muratguzel/letsrate/issues/72
I'm using turbolinks with Rails 4.1 and the star ratings don't display the selected rating upon visiting a new page.