Redirect from One Method to Another


/ Published in: Ruby
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. redirect_to :action => :index

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.