{"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/yo_waka/","height":"190","image_url":null,"width":"100%","version":"1.0","title":"Rails\u306eroutes.rb\u3067scope\u3068path\u304c\u4fbf\u5229\u3060\u3063\u305f","author_name":"yo_waka","url":"https://waka.hatenablog.com/entry/2012/12/02/002012","provider_name":"Hatena Blog","blog_title":"yo_waka's blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwaka.hatenablog.com%2Fentry%2F2012%2F12%2F02%2F002012\" title=\"Rails\u306eroutes.rb\u3067scope\u3068path\u304c\u4fbf\u5229\u3060\u3063\u305f - yo_waka&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","blog_url":"https://waka.hatenablog.com/","categories":["ruby"],"description":"\u306a\u3093\u304b\u65e5\u672c\u8a9e\u304c\u4e0d\u81ea\u7531\u306a\u611f\u3058\u3002\u3002 Rails\u306eroutes.rb\u3067\u666e\u901a\u306bresource(s)\u3092\u4f7f\u3046\u5834\u5408\u306fid\u3092\u4f7f\u3063\u305fURL\u30eb\u30fc\u30c8\u304c\u4f5c\u3089\u308c\u308b\u3002 resource 'foo' do resources 'bars' end # bundle exec routes GET /foo/:foo_id/bars(.:format) bars#index POST /foo/:foo_id/bars(.:format) bars#create GET /foo/:foo_id/bars/new(.:format) bars#new GET /foo/:foo_id/bars/:id/edit(.:for\u2026","published":"2012-12-02 00:20:12"}