Skip to content

Commit 1ea796d

Browse files
authored
Merge pull request rails#50523 from bparanj/correct-usage-of-named-routes
Document correct usage of named routes [skip ci]
2 parents 1e4f161 + 74ad735 commit 1ea796d

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
@@ -117,9 +117,9 @@ module ActionDispatch
117117
#
118118
# # In config/routes.rb
119119
# controller :blog do
120-
# get 'blog/show', to: :list
121-
# get 'blog/delete', to: :delete
122-
# get 'blog/edit', to: :edit
120+
# get 'blog/show' => :list
121+
# get 'blog/delete' => :delete
122+
# get 'blog/edit' => :edit
123123
# end
124124
#
125125
# # provides named routes for show, delete, and edit

0 commit comments

Comments
 (0)