Forum: Ruby on Rails A problem with the routes

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
539cf67210f74f733741b0ec7816d724?d=identicon&s=25 Riquelme (Guest)
on 2007-05-25 03:28
(Received via mailing list)
In many case,the non-standard url will cause the RouteError,and the
page will show 400.html.
but in my recently project,I don't want this be caused,it's take the
system resources,and the log file turn big very fast.
the spider always use 'XXXX/user.asp' to cache my page.
how can I do to write a regexp to redirect this request to a page such
as 'error.html',and will not case the RouteError.

sorry for my poor english...hehe.
83c8cca11558f32207645ca270ae8475?d=identicon&s=25 sishen (Guest)
on 2007-05-25 06:20
(Received via mailing list)
try this:

map.connect "*anything" , :controller => "application" , :action =>
This topic is locked and can not be replied to.