As of Rails 5, API gem is in merged in.
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.
Since API functionality is called by inheritance class ApplicationController < ActionController::API
I can't really see an option to combine the it with standard ApplicationController < ActionController
call.
Am I right? Would overloading on per-controller basis work?