I found a way around my problem. I''m not sure why, but the commas
were the problem. I''ve found that I can change my current route by
replacing the commas with slashes and it seems to work fine. I
haven''t been able to find this documented anywhere.
change
map.connect ''things/search/param1,:param1/param2,:param2/
param3,:param3/param4,:param4/param5,:param5/page,:page'', :controller
=> ''search'', :action => ''index'',
:requirements => { :param1 => /\d
+/, :param2 => /\d+/, :param3 => /\d+/, :param4 => /\d+/, :param5 =>
/
\d+/, :page => /\d+/ }, :page => ''1''
to (replacing commas with slashes)
map.connect ''things/search/param1/:param1/param2/:param2/
param3/:param3/param4/:param4/param5/:param5/page/:page'', :controller
=> ''search'', :action => ''index'',
:requirements => { :param1 => /\d
+/, :param2 => /\d+/, :param3 => /\d+/, :param4 => /\d+/, :param5 =>
/
\d+/, :page => /\d+/ }, :page => ''1''
On Mar 14, 4:19 pm, Bert Rapp
<bert.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I recently upgraded to rails 2.0.2.
>
> I''ve been using this route:
> map.connect ''things/search/param1,:param1/param2,:param2/
> param3,:param3/param4,:param4/param5,:param5/page,:page'',
:controller
> => ''search'', :action => ''index'',
:requirements => { :param1 => /\d
> +/, :param2 => /\d+/, :param3 => /\d+/, :param4 => /\d+/, :param5
=> /
> \d+/, :page => /\d+/ }, :page => ''1''
>
> I''ve been using this URL:
> /things/search/param1,0/param2,0/param3,0/param4,0/param5,0/page,0
>
> All of this has been working right up until I upgraded to rails
> 2.0.2. Now I receive this error:
> No route matches "/things/search/param1,0/param2,0/param3,0/param4,0/
> param5,0/page,0" with {:method=>:get}
>
> The only changes about routes I can find is regarding nested
> namespaces and removing semicolons.
>
> Does any one have any suggestions on this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---