I use Pjax with tutorial from http://railscasts.com/episodes/294-playing-with-pjax?view=comments I don't need change url and this coffee script code doesn't work:
.....
$("a#flag-comments").click ->
....
$.pjax
container: '[data-pjax-container-flag]',
replace: false,
url: '/flag_comments'
....
Any idea?
Set push: false in options. In js, it would be:
$(document).pjax('a', '#pjax-container', {push: false})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With