diff options
author | Xavier Noria <fxn@hashref.com> | 2010-12-29 23:46:03 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-12-29 23:46:03 +0100 |
commit | 69765aad8bcc853e7ab6b0e79f4edece2cdd7fe2 (patch) | |
tree | cbff92b476133e56dfdc4cfbdf2f5ecb6cfca2c3 /railties/guides/source/routing.textile | |
parent | 0ac66caac5581c4793d120c8ad4a2cf4137f6ce2 (diff) | |
parent | 6f58b9ad5331d3619fc68a4706d5f85a95510a63 (diff) | |
download | rails-69765aad8bcc853e7ab6b0e79f4edece2cdd7fe2.tar.gz rails-69765aad8bcc853e7ab6b0e79f4edece2cdd7fe2.tar.bz2 rails-69765aad8bcc853e7ab6b0e79f4edece2cdd7fe2.zip |
Merge branch 'master' of git://github.com/lifo/docrails
Diffstat (limited to 'railties/guides/source/routing.textile')
-rw-r--r-- | railties/guides/source/routing.textile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile index 32346e8f2b..15b26d8f9e 100644 --- a/railties/guides/source/routing.textile +++ b/railties/guides/source/routing.textile @@ -85,6 +85,9 @@ creates seven different routes in your application, all mapping to the +Photos+ |PUT |/photos/:id |update |update a specific photo | |DELETE |/photos/:id |destroy |delete a specific photo | + +NOTE: Rails routes are matched in the order they are specified, so if you have a +resources :photos+ above a +get 'photos/poll'+ the +show+ action's route for the +resources+ line will be matched before the +get+ line. To fix this, move the +get+ line *above* the +resources+ line so that it is matched first. + h4. Paths and URLs Creating a resourceful route will also expose a number of helpers to the controllers in your application. In the case of +resources :photos+: |