Posted By

wackimonki on 02/26/07


Tagged

redirect rails rubyonrails


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

webstic


Redirect from One Method to Another


 / 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.

  1. redirect_to :action => :index

Report this snippet  

You need to login to post a comment.