Added Rails Environment Relative URL

Similar to https://github.com/gitlabhq/gitlabhq/pull/642