Just launched! Get 30% off Rails Revisited Have a Look

Buy or Subscribe

You can access this course in just a minute, and support my efforts to rid the world of crappy online courses!

Buy Standalone  Subscribe

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