♦️Rails Structure

Describe about project structure of Rails framework

Folder Structure In /app

  1. /asset = store static file or style sheet

  2. /asset/images = store image that use by layout

  3. /asset/stylesheets = store all of css that use in view

  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

  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

  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

store migration file about database

Last updated