aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/routing.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-08-17 02:37:28 +0200
committerXavier Noria <fxn@hashref.com>2010-08-17 02:37:28 +0200
commitd14e2987b583a3dcb6836d310f77ce367c7396f8 (patch)
tree3469f270ec195c08718da4cde38e87cb299c4b3f /railties/guides/source/routing.textile
parentc7dd49eb2a319260e8a2a69104ea2323dbfed5d9 (diff)
downloadrails-d14e2987b583a3dcb6836d310f77ce367c7396f8.tar.gz
rails-d14e2987b583a3dcb6836d310f77ce367c7396f8.tar.bz2
rails-d14e2987b583a3dcb6836d310f77ce367c7396f8.zip
the (public) routing DSL does not accept symbols for get|post|put|delete|match
Diffstat (limited to 'railties/guides/source/routing.textile')
-rw-r--r--railties/guides/source/routing.textile8
1 files changed, 4 insertions, 4 deletions
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:
<ruby>
resources :photos do
member do
- get :preview
+ get 'preview'
end
end
</ruby>
@@ -324,7 +324,7 @@ Within the block of member routes, each route name specifies the HTTP verb that
<ruby>
resources :photos do
- get :preview, :on => :member
+ get 'preview', :on => :member
end
</ruby>
@@ -335,7 +335,7 @@ To add a route to the collection:
<ruby>
resources :photos do
collection do
- get :search
+ get 'search'
end
end
</ruby>
@@ -346,7 +346,7 @@ Just as with member routes, you can pass +:on+ to a route:
<ruby>
resources :photos do
- get :search, :on => :collection
+ get 'search', :on => :collection
end
</ruby>