MENUREADME | How to run locally | REST API doc | Web app screenshots
Eighteen versions (gradually implemented) of a Web and REST API app made with Ruby on Rails that aims to get the most out of the MVC/Rails Way.
| Branch | 034-resources-within-namespaces_nested-namespaces |
| Lines of Code | 1356 |
| Rubycritic Score | 91.56 |
This version pushes the cohesion further by creating another nested namespace (User::Settings).
| Before | After |
|---|---|
app/views/user ├── mailers/ ├── passwords/ ├── profiles/ ├── registrations/ ├── sessions/ ├── shared │ ├── links │ └── settings └── tokens app/controllers/user ├── passwords_controller.rb ├── profiles_controller.rb ├── registrations_controller.rb ├── sessions_controller.rb └── tokens_controller.rb | app/views/user ├── mailers/ ├── passwords/ ├── registrations/ ├── sessions/ ├── settings │ ├── profiles/ │ └── tokens/ └── shared └── links/ app/controllers/user ├── passwords_controller.rb ├── registrations_controller.rb ├── sessions_controller.rb └── settings ├── profiles_controller.rb └── tokens_controller.rb |
Because all user settings resources are isolated in the same namespace (User::Settings), which makes it easier to maintain and understand the codebase.
Aiming to improve the expressiveness of the application, the next version will make more use of singular resources.
Next version: 035-resources-within-namespaces_singular_resources.
To understand the project's context, I'd like you to please read the main branch's README.
Check out the:
- disclaimer to understand the project's purpose.
- summary of all branches.