Follow the documentation online to install the latest LTS version of Rails and all dependencies needed. I suggest the Odin Project as it’s a reliable source. Find it here
MVC
Ruby On Rails deploys an MVC architecture. Read a bit more about it Model-View-Controller (MVC).
Routes
This is how Rails routes the HTTP requests to server the proper controllers and all routes can be found in config/routes.rb
file or by typing in the terminal rails routes
.
Example file:
Rails.application.routes.draw do
root "homepage#index"
get "/about", to: "about#index"
end
The most important route in your app is the root
route, as it directs to the homepage or your index.
For example :root "homepage#index"
where homepage
is the controller and index
is the action (method).
For more read https://www.theodinproject.com/lessons/ruby-on-rails-routing
Scaffolds
What are they?
DB Migrations
???
rails db migrate
what for?
Routes folder
Contains routes.rb