RailsApps/rails3-subdomains — pull request #3 by markevich (2013-03-25 19:47:26+00:00)
Title: use RecordNotFound Exception instead of RoutingError

Model.first! raises RecordNotFound if no matching record is found.

In production mode, Rails automatically rescues the ActiveRecord::RecordNotFound exception by rendering the 404 error page.