Sometimes you may want to deploy a Rails application to sub-uri. But it’s not seamless if you didn’t write your code carefully. The main problem is absolute url.