Stateless Code | Codecast: Getting Started with Rails 7 06: Resourceful Routes for Articles and the link_to Helper @StatelessCode | Uploaded December 2021 | Updated October 2024, 6 hours ago.
This is the 6th video in the Getting Started with Rails 7 series. In this video Mike updates the routing configuration for articles to use routing resources instead of specifying every action one by one. He goes through each of the RESTful routes produced by the articles resource and then updates the index to use the link_to helper method and restores the ArticlesControllerTest to use article_url.
This video covers:
00:00:10 Introduction
00:02:13 Explain the Article as a resource
00:03:47 Put article_url back in the ArticlesControllerTest
00:04:21 Replace existing Article routing with resources :articles
00:04:51 An overview of the seven RESTful routes of the article resource
00:09:10 Examples of article_path and article_url
00:10:36 Using the Rails link_to helper with the article_path or the record variable itself
00:13:04 Review changes, commit, and push
This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.
This is the 6th video in the Getting Started with Rails 7 series. In this video Mike updates the routing configuration for articles to use routing resources instead of specifying every action one by one. He goes through each of the RESTful routes produced by the articles resource and then updates the index to use the link_to helper method and restores the ArticlesControllerTest to use article_url.
This video covers:
00:00:10 Introduction
00:02:13 Explain the Article as a resource
00:03:47 Put article_url back in the ArticlesControllerTest
00:04:21 Replace existing Article routing with resources :articles
00:04:51 An overview of the seven RESTful routes of the article resource
00:09:10 Examples of article_path and article_url
00:10:36 Using the Rails link_to helper with the article_path or the record variable itself
00:13:04 Review changes, commit, and push
This video is CC0 - No rights reserved. (YouTube doesn't allow this option when publishing.) All code is released under the UNLICENSE. Stateless Code denies the concept of "intellectual property". Copying is not stealing.