さまざまなドロップダウンリストとグループ化に使用されるjson restアプリケーションでルートの組み合わせをネストしました
resources :cities, :only =>[:index,:show]
resources :regions, :only =>[:index,:show] do
resources :cities, :only=>[:index, :show]
end
resources :countries, :only=>[:index,:show] do
resources :cities, :only=>[:index,:show]
resources :regions, :only=>[:index,:show]
end
もっとドライな方法で説明する方法はありますか?