Exceptions and request formats.

How to handle ActionView::MissingTemplate exceptions and to render the html version of the 404 template irrespective of which format the original request is being made for.