That _is_ clever!

I still believe Rails is in error here. The docs indeed do suggest
that the stuff is anchored. Clearly it's not. I'll consider making a
ticket.

Thanks for the input guys!

On Sep 23, 10:30 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas-
s.net> wrote:
> Matt Jones wrote:
> > The regexp you've specified here will match as long as there are at
> > least two consecutive non-space characters.
>
> I would have thought so, but the routing docs suggest that the regex is
> implicitly anchored at both ends (look at the postalcode example).
>
> > The only way I can think
> > of to do what you're looking for would be to add a route preceding
> > this one which matches any :plan WITH a space, and routes it to an
> > error page.
>
> That's clever!
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to