generate controller rails generate controller home index creates controller named home, and action page index.You can access the page by navigating to /home/index page
generate model rails generate model Article title:string text:text creates model Article with table named Articles, columns title, text
add routes to /config/routes.rb
Add resources :articles this will create add needed connection and routes to the newly create model
Scaffolding rails generate scaffold name fieldname:type rails db:migrate