Skip to content

Commit

Permalink
Document correct usage of named routes [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
bparanj committed Jan 3, 2024
1 parent d2767a0 commit 74ad735
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionpack/lib/action_dispatch/routing.rb
Expand Up @@ -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
Expand Down

0 comments on commit 74ad735

Please sign in to comment.