I have added the pjax javascript.
In my view I have:
<div data-pjax-container>
<%= yield %>
</div>
But still onclick the hole page updates.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Be sure you have included this line in app/assets/javascript/applications.js:
Add an id attribute to the div:
And make an explicit call to a pjax div from a link in your views:
Note:
The gem used is ‘pjax_rails’. Always check that javascript isn’t broken (with firebug or equivalent – You can also use it to sniff the network and view the pjax request).