Slide 9
Slide 9 text
Setting Up Your Routes
● Open the routes folder
● You should see a lot of documentation
● We're going to add a custom route and a
root route
● The first route will be pointing to our new
PagesController action splash
● Write: get "/splash", controller: :
pages, action: :splash
● Now start your database, server, and open
your browser to http://localhost:3000/splash
● Now write: root to: "pages#splash"