jump_back - a new gem to improve redirecting back in Rails
comments

Last updated 10 January 2015

Have you ever encounter encountered errors when running redirect_to :back in Rails and had to write a work around? What about saving a user's location on your site before redirecting them to your log in form so you can return them to what they were doing?

I've just released a gem, jump_back, that takes care of all of that for you with redirect_back, save_referer, and return_to_referer methods available in all your controllers. Check out the details in the Github README here.

If you have any ideas/feedback about jump_back you can leave a comment in here or, even better, open an issue on Github.

I hope you find it useful!

comments powered by Disqus