views:

39

answers:

1

Trying to set up a Rails app in a subdirectory. My server is Cherokee. I have a base url of: www.nonsense.com, which is a wordpress blog, and I wish to set up a rails app in, www.nonsense.com/rails_app.

A quick scan of google led me to using: ActionController::AbstractRequest.relative_url_root = "/rails_app"

However, it seems this has been removed in the latest Rails. Any ideas as to the equivalent in Rails 2.3.8?

A: 

you want to use this in your environment file now:

config.action_controller.relative_url_root = '/rails_app'

EDIT: Source: http://guides.rails.info/configuring.html

Geoff Lanotte