Skip to content

Commit 74ad735

Browse files
committed
Document correct usage of named routes [skip ci]
1 parent d2767a0 commit 74ad735

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

actionpack/lib/action_dispatch/routing.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ module ActionDispatch
120120
#
121121
# # In config/routes.rb
122122
# controller :blog do
123-
# get 'blog/show', to: :list
124-
# get 'blog/delete', to: :delete
125-
# get 'blog/edit', to: :edit
123+
# get 'blog/show' => :list
124+
# get 'blog/delete' => :delete
125+
# get 'blog/edit' => :edit
126126
# end
127127
#
128128
# # provides named routes for show, delete, and edit

0 commit comments

Comments
 (0)