Hi !
2006/6/28, Nicholas Seckar <[EMAIL PROTECTED]>:
Awesome.
There are two places Regexp's appear. They are attached to segments in the
path as segment.regexp (See DynamicSegment.) and they also appear on the
route's requirements hash (route.requirements.)
However they both pass thru RouteBuilder during route construction. Adding
the check there may be the key to staying DRY.
See ticket #5674: http://dev.rubyonrails.org/ticket/5674
I followed your suggestion, Nicholas, to add the code to RouteBuilder.
We also sport a new RuntimeError class:
ActionController::Routing::SyntaxError.
NOTE: I had to change a previously working test to pass again. I
wonder why the test didn't expose the same bug I had ?
Bye !
--
François Beausoleil
http://blog.teksol.info/
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core