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-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://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