← Back to Upcase

redirect_to if on a certain view


(Scott Hollinshead) #1

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?

Thanks


(Harlow Ward) #2

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.