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?