Replace unkown action with 404

is there a way to replace unkown action error with a pretty 404 page ?

I set the ErrorDocument 404 in .htaccess, however when someong goes to
http://www.mysite.com/bogus i would like it to show a 404 error instead
of
just “Uknown action”.

Is this possible with a rescue or something?

adam

Adam D. wrote:

is there a way to replace unkown action error with a pretty 404 page ?
[…]
Is this possible with a rescue or something?

Your public/404.html will be shown in Production mode. The “Unknown
action” is the more informative message you get in Development.

To read more about how to do fancy things with errors and error messages
check out
http://wiki.rubyonrails.com/rails/pages/HowtoConfigureTheErrorPageForYourRailsApp
.

thanks you are indeed correct.

-adam