Base directory for rails

software development


When using rails on my laptop, with webbrick, my base directory is the application itself. E.g.

[quote]rails toy


The base directory is …/toy/

When I am on DreamHost (under control of apache), the base directory is …/, where is my subdomain name for the rail application.

Could somebody share with me how to have the same base directory in the two scenarios described? The reason this is important is that I load yaml files stored under toy/config,
so that in one case I must do:


in the other case, I must do


Of course, I could have an environment variable that stores
the base directory or some kind of file I read it from, but that
should be how its done.



Gordon Erlebacher
School of Computational Science
Florida State University
Tallahassee, Florida


I would like to know this to as it is currently braking my file upload…

MIND Productions | Juice10