The Ruby on Rails Team has been making every effort to refine their framework for a while. Just a few months ago, we heard about the upcoming Rails 5, and shortly after that, in December, they announced the first beta release of Rails 5, containing Action Cable, APImode, and Rails command (working on BaseCamp3, launched in November, 2015). What a speed!
With regard to API mode, the team created a new application using rails new backend –api to slim the construct and configuration that assumes working with JSON, not HTML. Further, they explain that APImode relies on #tojson calls on model classes, by default, but “you can either use Jbuilder, Active Model Serializers, or look at the new JSONAPI: : Resources_ for a more advanced solution” (para. 7).
Another important undertaking is “making bin/rails the one master command to rule them all” (para. 9). It is planned that bin/rails command will serve as a gateway through which developers can access their rake commands.
The new solutions hidden under the Action Cable, API mode, and Rails command concepts are intended to save developers’ time and make their work easier. Cool perspectives!