I know I\'m going to deploy to an environment with my application running with a base URL which looks like this:
http://someserver/mydepartment/myapp
Add the below line to the end of config/environment.rb
ActionController::Base.relative_url_root = "/mydepartment"