开发者

I can't find the dispatch related files in a rails 3 app?

开发者 https://www.devze.com 2023-01-30 06:34 出处:网络
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. T

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消