Routes can be defined using simple strings or with matching patterns. Patterns can use regular expressions to specify which text should match or use a wildcard to match any text.
- [Narrator] In this movie we will learn how to define…more complex routes by using route patterns.…You can define routes in a number of different ways.…We've already seen the simplest of these,…which is to use literal strings.…So for example in the last movie…we had /goodbye, and /about.…Our route has to exactly match that string…or the code associated with it won't be executed.…We can also write more flexible routes by using patterns,…and we can define those patterns using regular expressions.…Regular expressions are a way to describe…a text pattern using symbolic language.…
They're like rules for defining which text should match.…They're very powerful,…and if you want to learn how to use them you can check out…my training course, Using Regular Expressions.…For the purposes of this course, I'm not going to assume…that you know a lot about regular expressions,…and we're going to keep them very simple.…I'll explain what you need to know about them.…In addition to regular expressions,…you also have the ability to use wildcard characters,…
- 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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.