Show a 404 instead of 500 in Rails
Posted
by Victor P
on Stack Overflow
See other posts from Stack Overflow
or by Victor P
Published on 2010-03-31T13:40:24Z
Indexed on
2010/03/31
13:43 UTC
Read the original article
Hit count: 310
ruby-on-rails
In my rails app I have defined the routes so users can access records like http://mydomain.com/qwe2
But if they type a wrong "qwe2" they get a 500 page. I think a 404 would be more appropriate.
How can I change the error page that is shown? Thanks
© Stack Overflow or respective owner