| Start |
|---|
| 1. Use of shallow One way to avoid deep nesting (as recommended above) is to generate the collection actions scoped under the parent, so as to get a sense of the hierarchy, but to not nest the member actions. In other words, to only build routes with the minimal amount of information to uniquely identify the resource, like this: The shallow method of the DSL creates a scope inside of which every nesting is shallow. This generates the same routes as the previous example: There exist two options for scope to customize shallow routes. :shallow_path prefixes member paths with the specified parameter: Use Rake Command for get generated routes as define below: |
Read Article
https://develop.horje.com/learn/1434/reference