Content-Type application/json by default in Rails 5
31-May-2018 2497
Imagine you generate Rails API only app (rails new --api) and now you want all the requset been considered as JSON content-type (even if the header is not.
Content-Type application/json by default in Rails 5 #ruby #rubydeveloper #rubyonrails #Content-Type #application/json #default #Rails #application/json https://rubyonrails.ba/link/content-type-application-json-by-default-in-rails-5