/ Published in: Ruby
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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
redirect_to :action => :index