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

fix named route example [ci skip]

This commit is contained in:
Jose Donizetti 2016-05-19 00:06:48 -04:00
parent 1a4deb9664
commit e73f9bed62

View file

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