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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060106/c52e044c/attachment.html
Adam Denenberg 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> . -- Jakob Skjerning - http://mentalized.net
thanks you are indeed correct. -adam On 1/6/06, Jakob L. Skjerning <jakob@mentalized.net> wrote:> Adam Denenberg 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> > . > > -- > Jakob Skjerning - http://mentalized.net > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >