Hi Chirag,

Thanks for the response.

Equivalent routes from rails 2 that seem to have worked fine are:

map.connect 'level1/level2/level3/:action', :controller => 'level1/
level2/level3'
map.connect 'level1/level2/:action', :controller => 'level1/level2'
map.connect ':controller/:action/:id'

Further messing around I came up with:

namespace "levelx" do
  namespace "levely" do
    namespace "levelz" do
      match 'levelzcontrollerone(/:action)' => 'levelzcontrollerone#'
      match ':action' => '#'
      root :to => 'levelz#index'
    end
    match 'levelycontrollerone(/:action)' => 'levelycontrollerone#'
    match ':action' => '#'
    root :to => 'levely#index'
  end
  match 'levelxcontrollerone(/:action)' => 'levelxcontrollerone#'
  match ':action' => '#'
  root :to => 'levelx#index'
end

Which seems to work. rake routes gives:

     levelx_levely_levelz  /levelx/levely/levelz/levelzone(/:action)
(.:format) {:controller=>"levelx/levely/levelz/levelzone"}
                           /levelx/levely/
levelz/:action(.:format)             {:controller=>"levelx/levely/
levelz"}
levelx_levely_levelz_root  /levelx/levely/
levelz(.:format)                     {:controller=>"levelx/levely/
levelz/levelz", :action=>"index"}
            levelx_levely  /levelx/levely/levelyone(/:action)
(.:format)        {:controller=>"levelx/levely/levelyone"}
                           /levelx/
levely/:action(.:format)                    {:controller=>"levelx/
levely"}
       levelx_levely_root  /levelx/
levely(.:format)                            {:controller=>"levelx/
levely/levely", :action=>"index"}
                   levelx  /levelx/levelxone(/:action)
(.:format)               {:controller=>"levelx/levelxone"}
                           /
levelx/:action(.:format)
{:controller=>"levelx"}
              levelx_root  /
levelx(.:format)
{:controller=>"levelx/levelx", :action=>"index"}
                           /:controller(/:action)(.:format)


Not sure if this is in any way sensible but seems to get the job done.

Thanks once again for your help

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to