> map.page '':sex/:word'', :controller =>
''say'',
> :requirements => { : sex =>/girl|boy/ }
>
>
> So this works fine:
>
> http://mypage.com/say/boy/hello
>
> also this:
>
> http://mypage.com/say/girl/hello%20world
>
> but this:
>
> http://mypage.com/say/girl/hello.world
>
> returns: Error 404 The page you were looking for doesn''t exist.
>
> How can I fix this?
I had a route like this once where :code was a series of numbers and
periods. The below made it work.
r.foo_detail ''/foo/:code/:title/detail'',
:action => ''detail'',
:requirements => { :code => %r([\d.]+) }
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---