Skip to content

Commit

Permalink
corrected to Rails 3 syntax for declaring resources
Browse files Browse the repository at this point in the history
  • Loading branch information
rajinder-yadav authored and fxn committed Nov 15, 2010
1 parent 45c3aba commit bad920f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/form_helpers.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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*:

<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.
Expand Down

0 comments on commit bad920f

Please sign in to comment.