How to redirect to a url that is stored inside a variable

I am trying to redirect to an url by using the method redirect_to but
the URL is stored in a variable. i tried to give some thing like this

redirect_to (@redirectURL)
but it dint worked

Plz help me out

Thanks
sreevarshini

Sreevarshini K. wrote:

I am trying to redirect to an url by using the method redirect_to but
the URL is stored in a variable. i tried to give some thing like this

redirect_to (@redirectURL)
but it dint worked

There is no ‘redirect_to’ method in the core Ruby language. I guess
you’re talking about Rails - please asks Rails questions on a Rails
mailing list.