change/subrails — pull request #1 by kylev (2012-03-30 02:10:46+00:00)
Title: Transform bad URLs into ActionController::RoutingError

Lots of people make bad links with invalid characters in them (or otherwise invalid URLs). Rather than letting URI.parse throw an error or having to globally catch the URI::InvalidURIError (which is dangerous if you use URI.parse anywhere else in your code), let's catch bad URIs and transform them to an exception that makes them a 404.