diff options
author | Xavier Noria <fxn@hashref.com> | 2009-04-28 09:48:27 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-04-28 09:48:27 +0200 |
commit | 348d7f8a84ee1739ef54c4068263a7d36dd98fd1 (patch) | |
tree | 7761bbfa6a4bca92f500bd512d435ceb2f29f2f5 | |
parent | 57f031cba2740fd8afc867960220e28a1c333dc5 (diff) | |
download | rails-348d7f8a84ee1739ef54c4068263a7d36dd98fd1.tar.gz rails-348d7f8a84ee1739ef54c4068263a7d36dd98fd1.tar.bz2 rails-348d7f8a84ee1739ef54c4068263a7d36dd98fd1.zip |
fixes redirect codes in layouts and rendering guide, thanks to Loren Norman
-rw-r--r-- | railties/guides/source/layouts_and_rendering.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/layouts_and_rendering.textile b/railties/guides/source/layouts_and_rendering.textile index 809d2b2172..d7573e6314 100644 --- a/railties/guides/source/layouts_and_rendering.textile +++ b/railties/guides/source/layouts_and_rendering.textile @@ -447,7 +447,7 @@ redirect_to :back h5. Getting a Different Redirect Status Code -Rails uses HTTP status code 302 (permanent redirect) when you call +redirect_to+. If you'd like to use a different status code (perhaps 301, temporary redirect), you can do so by using the +:status+ option: +Rails uses HTTP status code 302 (temporary redirect) when you call +redirect_to+. If you'd like to use a different status code (perhaps 301, permanent redirect), you can do so by using the +:status+ option: <ruby> redirect_to photos_path, :status => 301 |