Wrong URL/Application crashing Notification.

Hi All,

I want to make a default page if application is crashes i want to know
what is the best way to do that. Also when user make some url changes
application shouldn't get crashed.for ex. if user type url :-
http://localhost:3000/user/show/1 it should notify user that he/she type
the wrong url intead of getting crashed.
also i want to render user to a html page for the 404, 500, and other
this type of the crash.

Thanks & Regards,

Salil Gaikwad

Exception is generated only when you are running a rails app in development mode. In production mode it will render 404.html, 500.html etc (present in public directory). You can customize those pages the way you want.