Resourceful routes are routes that follow the REST pattern. They route a combination of a URL and an HTTP verb to a specific controller and action. Resourceful routes are the default in Ruby on Rails. It is easy to add a resourceful route, but it is important to also understand what that route will do.
REST still lets us use the basic CRUD actions…that we've already put in our controller,…but the URLs which we use to access them will be different.…These are called Resourceful Routes.…Because they're closely aligned with REST,…you'll also sometimes hear them called RESTful routes.…We could continue to simply write match routes…and use the principles of REST,…and at the moment, in Rails 5,…you can even use the default route structure,…though that may go away later.…So why use resourceful routes then?…Well, first of all, it is the Rails default,…and they are optimized for REST.…
They really make it easy to work with REST…and to follow the principles of REST.…And they give us a simple, consistent,…and organized structure to our URLs and to our code.…They also improve our application security.…That's because we're able to very carefully regulate…which operations are allowed on particular resources.…And last of all, most professional Rails developers…use resourceful routes.…And if that's your goal, is to become a real developer,…
- 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?
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.