From: David Heinemeier Hansson Date: 2005-02-17T05:16:37+09:00 Subject: Re: Rails question > This brought up a former problem of mine: I was not able to deploy a > single rails app to an apache www-root subdirectory, because all the > automatically generated links (link_to, actions, etc.) pointed at > www.servername.com/action instead of > www.servername.com/ochronus/rails_app/action. I couldn't find any > workaround, and even "googling" was no good... Does anyone have an > idea? You can use :application_prefix. You can even set this as a default rewrite option if all your rewrites needs to be made with this prefix. Example: class ApplicationController protected def default_url_options(options) { :application_prefix => "ochronus/" } end end -- David Heinemeier Hansson, http://www.basecamphq.com/ -- Web-based Project Management http://www.rubyonrails.org/ -- Web-application framework for Ruby http://www.loudthinking.com/ -- Broadcasting Brain