在rails3中,production模式默认是不处理静态文件的。在config/environments/production.rb中有这么一段:
# Disable Rails's static asset server
# In production, Apache or nginx will already do this
config.serve_static_assets = false
原因是,Rails希望在产品模式下,静态文件由站在rails前边的web server来处理。所以如果你没有安装nginx等web server,那么把false改为true就能解决问题了。