> For the complete documentation index, see [llms.txt](https://dev7days.gitbook.io/dev7days/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev7days.gitbook.io/dev7days/ruby-and-rails/rails-structure.md).

# Rails Structure

Describe about project structure of Rails framework

**Folder Structure In /app**

1. /asset = store  static file or style sheet&#x20;
2. /asset/images = store image that use by layout
3. /asset/stylesheets = store all of css that use in view&#x20;
4. /asset/stylesheets/application.css = manifest of all css (must have to let all css available in application
5. /channel = utilize for make realtime , broadcast or chat application
6. /controller = controller of view&#x20;
7. /controller/application\_controller =  it like a house for all controllers, All controllers that we created are a subclass of ApplicationController
8. /helper = store helper function that use only in our view
9. /javascript = In Rails6 it has this folder to make our view can use javascript by Webpack&#x20;
10. /model = store all of model
11. /view = store layout file

**Folder Structure In /config**

1. /environment = store all of configuration separate by environment
2. /routes = store routes
3. /credentials.yml.enc = store credential key with encrypt

**Folder Structure In /db**&#x20;

store migration file about database
