Forum: Ruby on Rails help from Routing guru ...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ee0293412faca21e4ebf3326ed9d5f8c?d=identicon&s=25 Kad Kerforn (kadoudal)
on 2009-05-23 16:04
(Received via mailing list)
using such route  :

  map.namespace(:hubs) do |hub|
    hub.resources :settings,
      :member     => { :general => :get }
  end

I get :

general_hubs_setting
 /hubs/settings/:id/general
 {:action=>"general", :controller=>"hubs/settings"}

but I would like to get
/hubs/:id/settings/general
 {:action=>"general", :controller=>"hubs/settings"  with params[:id] =
1

what kind of route I should use ?

thanks for your help
This topic is locked and can not be replied to.