欢迎来到cool的博客
7

Music box

Click to Start

点击头像播放音乐
新博客链接

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.

返回列表