From e73f9bed62a138dc0f2a78dfa4eda7d3292ba1aa Mon Sep 17 00:00:00 2001 From: Jose Donizetti Date: Thu, 19 May 2016 00:06:48 -0400 Subject: fix named route example [ci skip] --- actionpack/lib/action_dispatch/routing.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack') 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 # -- cgit v1.2.3