Could anyone enlighten me on using scaffold_resource with a path component (for lack of a better term). I tried this: ruby script/generate scaffold_resource admin/user email:string which sort of worked, except that this was inserted into routes.rb: map.resources :users which I had to change to: map.resources :users, {:controller=>"Admin::Users", :custom_path => ''/admin/users''} and the controller was generated with an index method that set an instance variable of @admin_users instead of @users. Once I made those 2 changes, all seems well, but I wonder if there is a better approach? This is with Rails 1.2.3. (FWIW what I''m really trying to do is partition the admin component into some separate URL space but I''m starting to think that idea might be fundamentally flawed.) --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---