From the Rails 1.2 notes about routes:
:requirements => { :proj_name => /.*/, :file_name => /.*/ }
Jason
On 2/13/07, Tiger Dong
<idlecat511-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
>
> I wrote an application under rails 1.1.6. I have wrote routes to
> handle URL like:
> http://somewhere.org/some_action/<prj_name>/<file_name>
> 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
> "_".
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---