aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorRajinder Yadav <devguy.ca@gmail.com>2010-11-08 03:47:45 -0500
committerRajinder Yadav <devguy.ca@gmail.com>2010-11-08 03:47:45 -0500
commit4d5807bcd5bd57e96ea7f9981dae9913289a078d (patch)
tree72dba5a0eebcff57377f9cc7f10b14d650728048 /railties/guides/source
parente22ad7ae1da0e2a78aaa33c33b272a230d9e8d28 (diff)
downloadrails-4d5807bcd5bd57e96ea7f9981dae9913289a078d.tar.gz
rails-4d5807bcd5bd57e96ea7f9981dae9913289a078d.tar.bz2
rails-4d5807bcd5bd57e96ea7f9981dae9913289a078d.zip
corrected to Rails 3 syntax for declaring resources
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/form_helpers.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile
index 80e0421b48..341d4b1c27 100644
--- a/railties/guides/source/form_helpers.textile
+++ b/railties/guides/source/form_helpers.textile
@@ -284,7 +284,7 @@ h4. Relying on Record Identification
The Article model is directly available to users of the application, so -- following the best practices for developing with Rails -- you should declare it *a resource*:
<ruby>
-map.resources :articles
+resources :articles
</ruby>
TIP: Declaring a resource has a number of side-affects. See "Rails Routing From the Outside In":routing.html#resource-routing-the-rails-default for more information on setting up and using resources.