Rails 3 routing: Avoiding Deep Nesting

Deadly 提交于 2019-12-01 04:44:32

You pretty much got it figured out and on the right track. It really depends on your domain. Just looking at your routes, I would ponder on what Settings does. Maybe a namespace somewhere to handle settings would suffice, maybe not. Really depends on what you are trying to do.

However, as far as nesting goes. It's looking fine.

PS. You can also refer to this guide for routing in Rails 3.0.X.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!