From 1a6c81c4f9076885aee593b4aa3704b5cdbeb879 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Tue, 24 Aug 2010 17:12:02 +0100 Subject: Revert "Use symbols when specifying custom resource actions" This reverts commit 02aabbd19e59720d2d5819978d2f712c2279bf34. --- railties/guides/source/routing.textile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'railties') diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile index 457b6804b1..7e1b0c2e32 100644 --- a/railties/guides/source/routing.textile +++ b/railties/guides/source/routing.textile @@ -313,7 +313,7 @@ To add a member route, just add a +member+ block into the resource block: resources :photos do member do - get :preview + get 'preview' end end @@ -324,7 +324,7 @@ Within the block of member routes, each route name specifies the HTTP verb that resources :photos do - get :preview, :on => :member + get 'preview', :on => :member end @@ -335,7 +335,7 @@ To add a route to the collection: resources :photos do collection do - get :search + get 'search' end end @@ -346,7 +346,7 @@ Just as with member routes, you can pass +:on+ to a route: resources :photos do - get :search, :on => :collection + get 'search', :on => :collection end -- cgit v1.2.3