Forum: Ruby on Rails Upgrade to 1.2 causes routes.rb not work

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
6597f3bbd90a4fcbd3a7f14dbe7be9c8?d=identicon&s=25 Tiger Dong (Guest)
on 2007-02-13 17:03
(Received via mailing list)
I wrote an application under rails 1.1.6. I have wrote routes to
handle URL like:<prj_name>/<file_...
This routes.rb worked great till I upgrade to rails1.2. The reason
behind is that:

1. Both prj_name and file_name in my case contain "."  and
2. In Rails1.2 route like "/abc/:def" would generated a regular
expression like /\A\/abc\/([^\/;.,?]+)\/?\Z/

Are there any workaround? I don't want a silly replacement from "." to
83ca41657a99b65d99889abe712ba5e2?d=identicon&s=25 Jason Roelofs (Guest)
on 2007-02-13 17:06
(Received via mailing list)
From the Rails 1.2 notes about routes:

:requirements => { :proj_name => /.*/, :file_name => /.*/ }

This topic is locked and can not be replied to.