# :back

**URL:** <https://www.ruby-forum.com/t/back/143364>\
**Category:** Rails\
**Created:** [July 17, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/back/143364 "2008-07-17T18:28:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [July 17, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/back/143364/1 "2008-07-17T18:28:06Z")

</div>

In a redirect\_to you can say :back to redirect you back to the previous  
function. How do I access that previous function value? I need to check  
and see if one method is being called from a certain method, it is I  
would like a reseting of a cookie to be skipped. Thanks,

-S

---

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [July 17, 2008, 6:38pm UTC](https://www.ruby-forum.com/t/back/143364/2 "2008-07-17T18:38:39Z")

</div>

On 17 Jul 2008, at 17:28, Shandy N. wrote:

> In a redirect\_to you can say :back to redirect you back to the  
> previous  
> function. How do I access that previous function value? I need to  
> check  
> and see if one method is being called from a certain method, it is I  
> would like a reseting of a cookie to be skipped. Thanks,

Is just the referer (which should be one of the things in request.env

Fred
