Routing in Rails

I am fiddling around with some special setups and my routing does not
work.
So I wonder: how does routing work in Rails?
Is everything caught by dispatch.cgi script because it is the 404
handler?
What happens with static content? Is it supposed to be found before the
cgi
script?

In default installation, every request to the file that does not exist
is handled by dispatch.cgi
This is set up in public/.htaccess

Bart B. wrote:

I am fiddling around with some special setups and my routing does not
work.
So I wonder: how does routing work in Rails?
Is everything caught by dispatch.cgi script because it is the 404
handler?
What happens with static content? Is it supposed to be found before the
cgi
script?

Cheltis wrote:

In default installation, every request to the file that does not exist
is handled by dispatch.cgi
This is set up in public/.htaccess

That’s interesting. Say I have a setup with
ActionController::AbstractRequest.relative_url_root set. Then that will
not
work for existing/static files. So images etc. will not work, right?