All, I am using a 3rd party component that (for right or wrong ;]) is attempting to ask for URLs of the form: http://host:port/controller/action/id?&group=undefined&sort=undefined&order=undefined&AJAX=Ajax.Updater_208&_ Rails barfs on this URL. However, a URL of the form http://host:port/controller/action/id?group=undefined&sort=undefined&order=undefined&AJAX=Ajax.Updater_208&_ works fine (only difference is the & on the first query - parameter). I can''t get Rails routing to handle this as simply a call to http://host:port/controller/action/id I tried setting up this route: map.connect '':controller/:action/:id?*stuff'' but to no avail. Does anyone understand why the 1st URL fails? Thanks, Wes -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Wes Gamble
2006-Sep-06 19:49 UTC
Re: Need a route to handle arbitrary query strings on URLs
Also tried this route: map.connect '':controller/:action/:id*stuff'' also doesn''t work. WG -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---