Rails route: redirect to external url -


this question has answer here:

how can redirect home root external url? have backend website , want redirect index website (and on domain).

i'm using rails 4:

root to: redirect('http:xxxx') 

works?

the following line redirect external url.

root to: redirect("http://www.stackoverflow.com/") 

Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -