On 6/28/06, Francois Beausoleil <[EMAIL PROTECTED]> wrote:
Hello Nicholas !

2006/6/28, Nicholas Seckar <[EMAIL PROTECTED]>:
> Perhaps we should add an informative error message for this case. Feel free
> to weight in if you think so. (Or better yet, send a diff + unit test.)

I will, I only need a pointer on where I should start searching.  With
that, I'll patch, with tests, of course.


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.

Good luck!

(Feel free to email me directly if you have more questions.)

Cheers,
Nicholas


_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to