How to set relative root in Rails 3.2.3

I need to have my rails root at a relative path.

Setting env RAILS_RELATIVE_URL_ROOT does not seem to work. And setting config.action_controller.relative_url_root also does not work.

At least, I haven't been able to get either of them to work.

Thank you for your help, pedz