Defaulting API format to JSON
In order to make the default format for all the API response as JSON:
namespace :api, defaults => { format: :json } do
end
Written by Manoj
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#