1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

corrected to Rails 3 syntax for declaring resources

This commit is contained in:
Rajinder Yadav 2010-11-08 03:47:45 -05:00
parent e22ad7ae1d
commit 4d5807bcd5

View file

@ -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.