Combining API and web views in Rails 5
<p>As of Rails 5, API gem is in merged in.</p>

<p>Now, what does that leave us with in case I have API to call via AJAX from the webpage? I'm looking for a best practice here. Surely, I can make a route with JSON serializer myself. Then, there is a possibility to entirely separate API calls into another app.</p>

<p>Since API functionality is called by inheritance <code>class ApplicationController &lt; ActionController::API</code> I can't really see an option to combine the it with standard <code>ApplicationController &lt; ActionController</code> call.</p>

<p>Am I right? Would overloading on per-controller basis work?</p>