redirect_to if on a certain view

I am using the same action in 2 different views.

How do I redirect_to somewhere if I am in one view but redirect_to somewhere else if I’m in another view?


Hi @scott are you rendering the views from the controller? In what case are you redirecting? If you can post some example code it could make it easier to discuss.