Hello. I have many links like these: /articles/... /albums/... /photos/... etc.
I need to use the name of the city in the beginning of urls if the user has choosed it: /city_name/articles/... /city_name/albums/... /city_name/photos/... But previous links shoul work too (/articles/..., /albums/...) ==== I tried this: map.articles '/articles/', :controller => "zags", :action => "cities", :using_city => 1 map.articles '/:city_url/articles/', :controller => "zags", :action => "cities", :using_city => 1 <%= link_to "London articles", articles_path, { :city_url => "london", :using_city => 1 } %> But it does not work. What should I change? I know, that I can change one of map names "map.articles", but I want to use the same route names in my View code.How can I do it? -- 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.