Add Rails' variable in application.rb to support relative url

This variable is used by assets compilation and other modules.