The previous 30 articles are based on the contents of the book written, rarely have their own understanding, from this beginning to understand some of the internal rails mechanism, so understand more things, less code, this time we look at the Rails directory structure.
About the directory structure of rails, we should have some understanding of the previous exercises, our working directory is mainly app and test two. Other directories are not much understood, the following is the usual directory structure for a rails project, and we also use the previous depot project as an example of the current depot project structure:
├─app
│├─controllers
│├─helpers
│├─models
│└─views
│├─admin TS
│├─login
│├─search
│└─store
├─components
├─config
│└─environments ├─coverage
├─db
│└─migrate
├─doc
│└─app
│├─classes
│└─files │├─app
│ │├─controllers
││├─helpers
││└─models
│└─doc
├─lib
│└─tasks />├─nbproject
│└─private
├─public
│├─images
│├─javascripts
│└─stylesheets ├─script
│├─performance
│└─process
├─test
│├─fixtures
│ ├─functional
│├─integration
│├─mocks
││├─development
││└─test
│ └─unit
│└─performance
├─tmp
│├─cache
│├─pids
│├─sessions └─vendor
└─plugins