Ruby on Rails development from scratch (Windows) (31)-Rails directory structure

Source: Internet
Author: User
Tags ruby on rails

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.