Removing controller boiler plate in Phoenix Testing callbacks in Elixir

Develop fast web apps in Phoenix using pjax

The idea behind pjax is that you update only the parts of the page that change when the user navigates through your app. However, unlike a normal AJAX app that returns only JSON from the server, a pjax request actually contains normal HTML that has been generated on the server. This HTML is only a fragment of the full page and Javascript is used in the browser to add the content to the page.

In this article I’m going to show you how you can add pjax to the Phoenix framework.

http://rny.io/elixir/phoenix/2015/09/20/pjax-in-phoenix.html