开发者

The command redirect_to "http://google.com" doesn't appear to be working!

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 sti开发者_JS百科ll had the original info - I'm not sent to google??? What am I not understanding?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜