We learn about the different types of Rails routes: simple routes, default routes, and the root route. Routing rules determine how URL strings are parsed and then used to determine which controller and action should handle the request.
- [Instructor] In this movie,…we will learn how Rails routing works.…Previously, we saw a diagram of the Rails architecture,…and we learned that the Web server…first looks for a matching file on the public directory,…but can't find a match,…it then sends the request…to the routing portion of the Rails framework.…Rails routing examines the URL, and from that,…determines which controller and action should be called.…It does this using route definitions…in the application's routes file.…There are several kinds of route definitions you can write.…There's the simple route,…also sometimes called the match route,…the default route, and the root route.…
These are the three basic types…we're going to be examining now.…There's a fourth type, which is resourceful routes,…and we will come back to those later on.…They're probably the kind of route…you will use the most often,…but they require us to learn a bit more before we use them.…Let's begin our exploration with a quick demonstration.…Make sure that you have a Web server running.…
- Creating and configuring a new Ruby on Rails project
- Generating controllers and views
- Handling server requests
- Using different types of routes
- Rendering and viewing templates
- Generating migrations and models
- Creating, updating, and deleting records
- Finding records with queries
- Understanding relationship types
- Writing controllers for CRUD
- Working with layouts and helpers
- Managing application assets
- Building forms
- Validating data
- Authenticating users
Skill Level Beginner
1. What Is Ruby on Rails?
2. Get Started
3. Controllers, Views, and Dynamic Content
4. Databases and Migrations
5. Models and ActiveRecord
7. CRUD, REST, and Resourceful Routes
8. Controllers and CRUD
9. Layouts, Partials, and View Helpers
12. Data Validation
13. Controller Features
14. User Authentication
15. Improve the Simple CMS
Next steps1m 44s
- 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.