ruby - Can't get pjax to work on Rails -
i'm trying pjax work on rails app none of links being annotated pjax. think pjax isn't being loaded. i'm using pjax_rails , following railscast instructions using //= require jquery.pjax instead of pjax. i'm using bootstrap may cause issue i'm not sure. other thought is pjax javascript isn't being loaded , need run $('a').pjax('[data-pjax-container]')
to clear main problem pjax isn't being loaded client side , when make requests x-pjax header not being set.
finally got working. first problem unbeknownst me assests pipeline turned off pjax javascript file wasn't being included. instead went pjax rack gem , dumped public directory. created new javascript file $('a').pjax('[data-pjax-container]') , works! although i'm not sure why need manually call javascript when documentation seems point fact should there.
Comments
Post a Comment