Upgrading from Rails 1.1.6 to Rails 1.2.0 broke any of my applications living in subdirectories. A URL to a project on the Apache server may be formatted like http://myserver.com/myapp. On the filesystem there would be a symbolic link from /var/www/htdocs/myapp to /home/rails/myapp/public.
The error I would receive when clicking on âÂÂAbout your applicationâÂÂs environmentâ link on the welcome page was this routing error:
no route found to match "/rails/info/properties" with {:method=>:get}
After examining a fresh install, I noticed the fix was to hardcode the RAILS_ROOT variable in the applicationâÂÂs environment.rb. For reference, hereâÂÂs what I saw in the logs that tipped me off:
Rendering /var/www/htdocs/myapp/../config/../vendor/rails/actionpack/lib/
action_controller/templates/rescues/layout.rhtml (not_found)