Forum: Ruby on Rails Routing Question w/ Separators

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.
wilson (Guest)
on 2007-03-23 21:29
(Received via mailing list)
How can I create a route that resembles "myhost.com/news/page1"?

I have tried this using:
map.connect "news/page.:page", :controller => "article", :action =>
"all"

I get "myhost.com/news/page.1". It gives me the separator as part of
the URL, which I do not want. How can i separate text from symbol in
my route without having a separator (ie. / or .) from appearing as
well? Thanks!
This topic is locked and can not be replied to.