In this challenge assignment, use everything you have learned about routes and templates to convert a simple HTML website into a Sinatra web application.
It's only the HTML files that we care about.…And when you remove them, don't forget to rename the files…with a new file extension.…Once you've got those all moved,…then you're going to define routes to render…each one of those templates,…so those pages should be loadable by Sinatra.…We're also going to make use of template variables.…You're going to want to set @page_title…for every one of your templates,…and then modify all of the templates…so that they make use of the layout, layout.erb.…
Remember that's going to be automatically called on all of them…
- Installing Sinatra
- Launching the server
- Defining routes
- Using route patterns and parameters
- Redirecting requests
- Rendering dynamic templates
- Using partial templates and layouts
- Defining custom helpers
Skill Level Intermediate
Ruby on Rails 5 Essential Trainingwith Kevin Skoglund10h 21m Beginner
Ruby on Rails: Get More From ActiveRecordwith Kevin Skoglund4h 27m Intermediate
3. Helpers and Filters
4. Useful Techniques
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.