REST Routing issue

map.resources :users do |users|
     users.resources :messages, :new => { :send => :get }
   end

And then, of course, it's up to you to provide the :to => receiver.id in your send_new_message_path() helper: send_new_message_path(:to => receiver)
gives you:

   /users/25/messages/new;send?to=5

OR:
   map.resources :users do |users|
     users.resources :messages, :collection => { :send => :get }
   end

and then: send_messages_path(:to => receiver)
gives you:

   /users/25/messages;send?to=5

-Rob

Rob Biedenharn http://agileconsultingllc.com
Rob@AgileConsultingLLC.com