Ah ha !

2006/6/28, Jamis Buck <[EMAIL PROTECTED]>:
I suspect the problem is that the :game regex has \A and \Z in it.
Because the new routes put that verbatim into the larger route regex,
the match will fail. (Ditto for the /^.*$/ regex, with the ^ and $
anchors.) I *think* (Nicholas, correct me if I'm wrong) that you can
just take the \A and \Z out of the regex and all will be well. Can
you give that a spin and see what happens?

Bingo.

Now that this is resolved, I'd like to prevent the same problem for
other people.  So, I need to patch the routing module to complain if a
requirement is a regexp, and the regexp contains ^, $, \A or \Z.  Just
a little pointer on where I should start would be appreciated.  I'll
take it from there.

When I say complain, I really mean an exception.

Thanks !
--
François Beausoleil
http://blog.teksol.info/
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to