Let''s say I have a resource defined...
map.resources :user do |user|
user.resource :profile
user.resource :foo
end
I''ve got everything working so to_param spits out the username
instead of
the id, so now I have urls like
/user/homer
/user/homer/profile
/user/homer/foo
How would one go about removing the /user/ from the route? Is it possible?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---