diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2016-05-19 13:32:39 -0400 |
---|---|---|
committer | Arthur Nogueira Neves <github@arthurnn.com> | 2016-05-19 13:32:39 -0400 |
commit | d6e7334d19c234d42904e4a70b5a76831731b114 (patch) | |
tree | c22693931988374cd15bf2d45ee32fdaa803fdcd /actionpack/lib | |
parent | 89e2f7e722e06f900bdb1c14db33073c90d7cdea (diff) | |
parent | e73f9bed62a138dc0f2a78dfa4eda7d3292ba1aa (diff) | |
download | rails-d6e7334d19c234d42904e4a70b5a76831731b114.tar.gz rails-d6e7334d19c234d42904e4a70b5a76831731b114.tar.bz2 rails-d6e7334d19c234d42904e4a70b5a76831731b114.zip |
Merge pull request #25070 from josedonizetti/fix_example_routes_doc
fix named route example [ci skip]
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing.rb b/actionpack/lib/action_dispatch/routing.rb index 67f441dfec..64f8636c52 100644 --- a/actionpack/lib/action_dispatch/routing.rb +++ b/actionpack/lib/action_dispatch/routing.rb @@ -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 # |