Browse files

corrected to Rails 3 syntax for declaring resources

  • Loading branch information...
1 parent 45c3aba commit bad920f42351713d82137825c530fbe9b5229618 Rajinder Yadav committed with fxn Nov 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/form_helpers.textile
2 railties/guides/source/form_helpers.textile
@@ -283,7 +283,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*:
-map.resources :articles
+resources :articles
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.

0 comments on commit bad920f

Please sign in to comment.