Hi! I need to be able to construct urls that looks something like this: news/sport/1-article. The news/sport part is a section that an article can be posted in. The idea is that sections can be nested and that it should be reflected in the url. How's that possible to do without globbing the whole route to a custom controller and then break it apart?
I tried something like this in the routes.rb without any luck: map.connect '*section/:id', :controller => 'articles', :action => 'show'. If I change it to map.connect '*section/articles/:id' it works but then i need that articles part in the routes all the time, not a very good solution:) Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---