Forum: Ruby on Rails Router :requirements

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fresh M. (Guest)
on 2009-03-27 10:36
How to make ":requirements" for router parameter that accept any string
/ any character?

map.page 'search/:word', :controller => 'search', :requirements => {
:word => ???? }

By default it doesn't accept "dot" in search word, so:

http://mydomain.com/search/this.is.test returns Error 404 page not
found.
Fresh M. (Guest)
on 2009-03-28 18:08
Help ?
Agustin V. (Guest)
on 2009-03-28 18:20
(Received via mailing list)
At this casts you can see an example:
http://railscasts.com/episodes/70-custom-routes

On Sat, Mar 28, 2009 at 1:08 PM, Fresh M.
<removed_email_address@domain.invalid
This topic is locked and can not be replied to.