right now I am using the following routes to 3 actions : index (get all messages) , received (get all received messages) and sent (get all sent message.... map.resource :user do |user| user.resources :messages, :collection => {:received => :get, :sent => :get} end which gives me the following urls to be used... - /user/messages;sent/ - /user/messages;received/ - /user/messages/ I am quite sure I can have only one action (index) with a parameter to differentiate the requested resource - /user/messages/:type 0 all 1 sent 2 received I tried the follwing, but I lost the nesting resource (user) map.messages ''messages'' :controller => ''messages'', :action => ''index'' how can I write this kind of routing ? thanks for your help kad -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---