β¦οΈRails Structure
Describe about project structure of Rails framework
Folder Structure In /app
/asset = store static file or style sheet
/asset/images = store image that use by layout
/asset/stylesheets = store all of css that use in view
/asset/stylesheets/application.css = manifest of all css (must have to let all css available in application
/channel = utilize for make realtime , broadcast or chat application
/controller = controller of view
/controller/application_controller = it like a house for all controllers, All controllers that we created are a subclass of ApplicationController
/helper = store helper function that use only in our view
/javascript = In Rails6 it has this folder to make our view can use javascript by Webpack
/model = store all of model
/view = store layout file
Folder Structure In /config
/environment = store all of configuration separate by environment
/routes = store routes
/credentials.yml.enc = store credential key with encrypt
Folder Structure In /db
store migration file about database
Last updated