
Reviewing the basics is always a good thing! Let's setup a home page and review how routing works with Rails.
The Code
Creating a Rails controller:
rails g controller home about
This creates a home\controller
for us with two routes: index
and about
.
Setting our default root route:
root "home#index