Re: Routes - Preventing a Match

Andrew Timberlake
Sat, 06 Jun 2009 02:50:17 -0000

On Fri, Jun 5, 2009 at 10:06 PM,
doug<ddjolley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
> The result that I''m trying to achieve is that URLs that begin with
''/
> static'' do not get mapped.
>
> My thought is that it sure would be nice if I could somehow say that
> if a URL begins with ''/static'' simply abandon any further
routing
> tests.
>
> How can I best handle this?
>
> Thanks for any input.
>
>        ... doug
>


Most rails websites are fronted by a different webserver that acts as a proxy.
Set that proxy to handle static content and not even pass it to rails.

Andrew Timberlake
http://ramblingsonrails.com

http://MyMvelope.com - The SIMPLE way to manage your savings