I made a recent post on 301 redirects in Rails, new to 2.0 we have a few more methods available to us.
1 | # prior method<br>headers["Status"] = "301 Moved Permanently"<br>redirect_to "/"<br><br># condo has been defined as a resource in my route.rb<br>redirect_to condo_url(@condo), :status => 301<br>redirect_to condo_url(@condo), :status=> :moved_permanently<br> |
Add New Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Add New Comment