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:
parent
e22ad7ae1d
commit
4d5807bcd5
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue