Wrapping it all up.
Lastly, you'll just need to add a data attribute to your
links that points to the selector that will have its content replaced by
the successful PJAX call.
<a href="/planes" data-pjax="#main">Planes</a>
And, you'll need to finally initialize the PJAX JavaScript.
$(function() {
$('a[data-pjax]').pjax()
})