From 74ad7356e20d32ad562e1d4497b1eae91abbea42 Mon Sep 17 00:00:00 2001 From: Bala Paranj Date: Mon, 1 Jan 2024 13:42:54 -0500 Subject: [PATCH] Document correct usage of named routes [skip ci] --- actionpack/lib/action_dispatch/routing.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actionpack/lib/action_dispatch/routing.rb b/actionpack/lib/action_dispatch/routing.rb index d78b1c4f71361..cf586b5f25aaf 100644 --- a/actionpack/lib/action_dispatch/routing.rb +++ b/actionpack/lib/action_dispatch/routing.rb @@ -120,9 +120,9 @@ module ActionDispatch # # # In config/routes.rb # controller :blog do - # get 'blog/show', to: :list - # get 'blog/delete', to: :delete - # get 'blog/edit', to: :edit + # get 'blog/show' => :list + # get 'blog/delete' => :delete + # get 'blog/edit' => :edit # end # # # provides named routes for show, delete, and edit