I have a Rails application deployed in a subdirectory (using Apache and Passenger if that matters). The app is deployed to the /agents subdirectory. Most of the logic of the