- resources :messages, :path => "user/messages", :constraints => { :id => /\d+/ }, :only => [:create, :show, :update, :destroy] do
- collection do
- get "inbox"
- get "outbox"
- end
+ resources :messages, :path => "user/messages", :constraints => { :id => /\d+/ }, :only => [:create, :show, :update, :destroy]
+ namespace :messages, :path => "user/messages" do
+ resource :inbox, :only => :show
+ resource :outbox, :only => :show