thoughtbot/high_voltage — pull request #178 by prydonius (2014-12-08 23:17:25+00:00)
Title: Raise routing errors for invalid or empty page ids

Visiting page_ids made entirely up of invalid characters raises a missing template error (because it doesn't match the regex checking for missing partials).

This commit adds a check to see if the page_id is empty after sanitisation, and raises and error if it is -- which is caught and turned into a routing error.