Never mind, I found the solution on the wiki:
map.connect ''/page/*path_info'', :controller =>
''page'',
:action => ''index''
--- Scott Walter <tx_scottwalter-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
wrote:
> I am trying to route any requess that comes after
> "/pages" to be routed to a particular controller
> even
> if it has a "/" forward slash. For examples
>
> /pages/demo
> /pages/demo/test
>
> I have tried the following route:
>
> map.connect ''page/:link'', :controller =>
''page'',
> :action => ''index'', :requirements => {:link =>
> /[a-zA-Z0-9_\/]*/}
>
> However if I try /pages/demo/test. Rails says that
> I
> have an unknown action, which makes sense.
>
> So how can I create a route in which anything after
> /page/ will be be considered a parameter to my page
> action?
>
>
> thanks, scott.
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Scott F.
> Walterscottwalter.com --explorer what''s new
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Scott F. Walterscottwalter.com --explorer
what''s new