Rescuing redirect :back after destroy in Rails?

Posted by Andreas on Stack Overflow See other posts from Stack Overflow or by Andreas
Published on 2010-06-15T16:55:05Z Indexed on 2010/06/15 17:52 UTC
Read the original article Hit count: 164

Filed under:

I'm looking for a best practice solution to be able to keep using redirect :back after a successful destroy action, as many items can be deleted from a variety of listings.

Unfortunately that strategy fails for the one case when the delete is initiated from the item view itself.

What approach do you recommend for this situation?

© Stack Overflow or respective owner

Related posts about ruby-on-rails