提交 d6e7334d 编写于 作者: A Arthur Nogueira Neves

Merge pull request #25070 from josedonizetti/fix_example_routes_doc

fix named route example [ci skip]
......@@ -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
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册