diff options
author | Rajinder Yadav <devguy.ca@gmail.com> | 2010-11-08 03:47:45 -0500 |
---|---|---|
committer | Rajinder Yadav <devguy.ca@gmail.com> | 2010-11-08 03:47:45 -0500 |
commit | 4d5807bcd5bd57e96ea7f9981dae9913289a078d (patch) | |
tree | 72dba5a0eebcff57377f9cc7f10b14d650728048 /railties | |
parent | e22ad7ae1da0e2a78aaa33c33b272a230d9e8d28 (diff) | |
download | rails-4d5807bcd5bd57e96ea7f9981dae9913289a078d.tar.gz rails-4d5807bcd5bd57e96ea7f9981dae9913289a078d.tar.bz2 rails-4d5807bcd5bd57e96ea7f9981dae9913289a078d.zip |
corrected to Rails 3 syntax for declaring resources
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/form_helpers.textile | 2 |
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. |