Router :requirements

How to make “:requirements” for router parameter that accept any string
/ any character? ‘search/:word’, :controller => ‘search’, :requirements => {
:word => ??? }

By default it doesn’t accept “dot” in search word, so: returns Error 404 page not

Help ?

At this casts you can see an example:

On Sat, Mar 28, 2009 at 1:08 PM, Fresh M.
<[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs