BUG: #index is missing a template for this request format and variant. request.formats: ["text/html"] request.variant: []
P.S.
it works if add format: "json"
in routes.rb
resources :zip_codes, only: [:index], format: "json"
Doesn't work if add respond_to: "json"
, resond_with: @zip_codes
.