refinery/refinerycms-news — pull request #119 by allspiritseve (2012-11-12 21:19:30+00:00)
Title: Specify regex for year and month within archive route

Instead of throwing an exception when a route like /news/archive/2012/whatever is accessed, Rails will return a 404 since the route won't match anymore.

Please let me know if my regex is too specific. I assumed years would be four numbers and months would be two numbers, and everything else would not match.