If you are deploying your Rails app to Tomcat using warbler and the Tomcat install directory has spaces in then you must escape the slashes and also add a starting and ending quote properly escaped as shown below in config/warbler.rb:
config.autodeploy_dir = "\"C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0.18\\webapps\""