1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #25070 from josedonizetti/fix_example_routes_doc

fix named route example [ci skip]
This commit is contained in:
Arthur Nogueira Neves 2016-05-19 13:32:39 -04:00
commit d6e7334d19

View file

@ -118,11 +118,11 @@ module ActionDispatch
# controller :blog do
# get 'blog/show' => :list
# get 'blog/delete' => :delete
# get 'blog/edit/:id' => :edit
# get 'blog/edit' => :edit
# end
#
# # provides named routes for show, delete, and edit
# link_to @article.title, show_path(id: @article.id)
# # provides named routes for show, delete and edit
# link_to @article.title, blog_show_path(id: @article.id)
#
# == Pretty URLs
#