Return to Snippet

Revision: 2474
at February 26, 2007 18:34 by wackimonki


Initial Code
redirect_to :action => :index

Initial URL

                                

Initial Description
Redirects from one method to another in a controller. This is handy when there's an error, and you need to go back to index page, or for other purposes.

Initial Title
Redirect from One Method to Another

Initial Tags
redirect, rails

Initial Language
Ruby