Codecast: Getting Started with Rails 7 06: Resourceful Routes for Articles and the link_to Helper @StatelessCode
Codecast: Getting Started with Rails 7 06: Resourceful Routes for Articles and the link_to Helper  @StatelessCode
Uploaded December 2021 | Updated September 2026, 3 weeks 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.
Codecast: Getting Started with Rails 7 06: Resourceful Routes for Articles and the link_to HelperCodecast: Create a RubyGem 80: Refactor ConvenienceMethods - Part 2Codecast: Create a RubyGem 83: Ensure Adequate Commenting for ConvenienceMethods ModuleCodecast: Getting Started with Rails 7 14: Refactor into Comment PartialsCreate a RubyGem 92: Add Contributing Guidelines to the ProjectUpgrade a Rails 7 Application to Ruby 3.2.2Codecast: statelesscode.com WordPress 13: Upload Theme and Plugins to Real SiteNerdDice.com Retrospective 3 - The Retro that THEY Dont Want You to SeeChange RuboCop Config to Enable New Cops By Default for a Rails ApplicationCodecast: statelesscode.com WordPress 19: Add Actual Intended Styles to SidebarThe Path to Rails 8 - Upgrade Rails from 7.1 to 7.2Codecast: Create a RubyGem 82: Add method_missing methods to Benchmark Script
Stateless Code |

Codecast: Getting Started with Rails 7 06: Resourceful Routes for Articles and the link_to Helper

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER