views:

36

answers:

1

So I have the final line in my controller:

    redirect_to "http://google.com"

And the prod log has:

Redirected to http://google.com
Completed in 8ms (DB: 4) | 302 Found [http://www.exmaple.com/728zz5d/delete_stuff]

And the web page still had the original info - I'm not sent to google??? What am I not understanding?

A: 

I have revisited this code and not sure what I did to fix as I reworked parts of it. I gather that I was using the wrong rails call, a link_to_function instead of a link_to as well, I am now using the _url helper so the final line is (to a local page)

redirect_to home_url

rtfminc