I''m having trouble with my routes when I do routing generation. Here are my routes: map.connect '''', :controller => "home" map.connect "library/read/:id/:page_number", :controller => "Library", :action => "read", :requirements => { :id => /\d+/, :page_number => /(\d+)|(\w+\.html)/ } map.connect '':controller/service.wsdl'', :action => ''wsdl'' # Install the default route as the lowest priority. map.connect '':controller/:action/:id/'' My link_to looks like this: link_to( ''Read'', :action => ''read'', :id => line_item, :page_number => 1 ) However, whenever I generate a URL using the named route library. I end up with a route like: /library/read/1?page_number=4 Where I want is: /library/read/1/4 Also is there anyway to force a trailing / on the end of my routes? In this case I''d really like it to generate: /library/read/1/ instead of: /library/read/1 Is there some logging I can turn on to see which route it''s picking when generating the links? How do I debug this? Charlie -- 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 -~----------~----~----~----~------~----~------~--~---