This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
We want to be able to type in "/Nick Pettit" or "/Robots" or any other page we've created a text file for, and have it load. But there's no way we can create separate Sinatra routes for all those. Not only would our app code be really long, we can't possibly anticipate every page that users might want to create. So instead, we're going to create a single route that will match any page users might attempt to visit. And we'll do it using a "URL parameter".
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up