Anatomy of a Rails application
Inside our citireview
application directory reside the auto-generated files and folders that came when we created our application with the automatic scripts included in the Rails gem. The following are the different components that make up the anatomy of a Rails application, along with their descriptions:
app/
This folder contains models, controllers, views, helpers, mailers, jobs, and assets for a Rails application. Most of the application-specific code files are placed in this directory.
bin/
This folder contains various scripts that set up, update, and run the Rails application.
config/
In this folder, we keep various configuration files related to routes, databases, environments, and initializers.
config.ru
This file is used by a Rack-based server to start the application.
db/
This folder contains all the files related to databases, such as migrations, schemas, and seed files.
Gemfile
,Gemfile.lock
With Gemfile, you can specify...