There is the following code for routing:
resources :orders, only: [:create], defaults: { format: \'json\' } resources :users, only: [:create, :update],
Try something like this:
scope format: true, defaults: { format: 'json' } do resources :orders, only: [:create] resources :users, only: [:create, :update] resources :delivery_types, only: [:index] resources :time_corrections, only: [:index] end