redirect_to does indeed send a 302 response to the browser, which causes the browser to make a new request at the redirect URL. A whole new web request occurs, and none of the code executed before the redirect is retained in memory.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
redirect 302 then redirect 304 | 0 | 111 | June 6, 2008 | |
redirect_to doesn't stop rest of page processing ?? | 2 | 207 | June 27, 2008 | |
redirect_to or render | 2 | 105 | February 28, 2008 | |
diff between redirect_to :action and calling action/rend | 0 | 140 | October 12, 2006 | |
flash message not shown after redirect_to | 1 | 155 | April 4, 2007 |