Hi all, just migrated from rails 2.2 to 2.3 I''m using a route that''s defined like this; map.browse ''/browse/:by/:type/:id'', :controller => "site", :action => "browse", :by => "all", :type => "list" When I call the "browse_path" in rails 2.3 it renders; /browse/// Which of course fails to map to my controller. Any suggestions? Thanks, Stijn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Additionaly: when I use browse_path(nil) it renders out just fine... On 6 apr, 12:51, Stijnster <st...@skylight.be> wrote:> Hi all, > > just migrated from rails 2.2 to 2.3 > > I''m using a route that''s defined like this; > > map.browse ''/browse/:by/:type/:id'', :controller => "site", :action => > "browse", :by => "all", :type => "list" > > When I call the "browse_path" in rails 2.3 it renders; > > /browse/// > > Which of course fails to map to my controller. > > Any suggestions? > > Thanks, > > Stijn--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
On Mon, Apr 6, 2009 at 11:24 PM, Stijnster <stijn@skylight.be> wrote:> > Additionaly: when I use browse_path(nil) it renders out just fine...Trying turning off routing optimisations in environment.rb: config.action_controller..optimise_named_routes = false> On 6 apr, 12:51, Stijnster <st...@skylight.be> wrote: >> Hi all, >> >> just migrated from rails 2.2 to 2.3 >> >> I''m using a route that''s defined like this; >> >> map.browse ''/browse/:by/:type/:id'', :controller => "site", :action => >> "browse", :by => "all", :type => "list" >> >> When I call the "browse_path" in rails 2.3 it renders; >> >> /browse/// >> >> Which of course fails to map to my controller. >> >> Any suggestions? >> >> Thanks, >> >> Stijn > > >-- Cheers Koz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---