# Access the stack trace

**URL:** <https://www.ruby-forum.com/t/access-the-stack-trace/119134>\
**Category:** Rails\
**Created:** [November 3, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/access-the-stack-trace/119134 "2007-11-03T16:28:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miked](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@miked](https://www.ruby-forum.com/u/miked)\
**Post date:** [November 3, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/access-the-stack-trace/119134/1 "2007-11-03T16:28:06Z")

</div>

Hi:

Don’t know if this the right title for what I’m looking for, but  
basically I want to be able to figure out what controller and actions  
are being fired.

Let me describe specifically what I’m looking for:

I have a partial that’s implemented on two pages. This partial has  
actions in it. If the user executes an action in this partial, I want  
the action to complete and then for them to be redirected to the page  
the partial’s in, which would basically be a reload. I found  
“params[:controller]” & “params[:action]” but I really want not the  
current controller and action but the previous one, or even better, the  
page that the partial’s in. How do I do this?

Thanks so much in advance!

Mike
