Support relative urls

I only added this line in application.rb and relative url works fine for me.