I 开发者_运维问答can't find the dispatch related files in a rails 3 app?
It was in the /public folder in the previous rails version right?
Nope. Never. It's not like standard PHP framework setups. The web server must be configured to, if the file is not found in public, pass the request to the Rack app all on its own.
In an Apache setup, this is Phusion Passenger's job. With servers like Mongrel or Thin, this is handled internally.
If you're interested in the actual ActionDispatch files, see GEM_ROOT/actionpack-VERSION/lib/action_dispatch
(replace GEM_ROOT with where your gems are stored, and VERSION with the exact Rails version in question).
精彩评论