- resources :changesets, :path => "changeset", :id => /\d+/, :only => :show
- get "/changeset/:id/comments/feed" => "changeset_comments#index", :as => :changeset_comments_feed, :id => /\d*/, :defaults => { :format => "rss" }
- resources :notes, :path => "note", :only => [:show, :new]
+ resources :changesets, :path => "changeset", :id => /\d+/, :only => :show do
+ match :subscribe, :unsubscribe, :on => :member, :via => [:get, :post]
+
+ namespace :feeds, :path => "" do
+ resources :changeset_comments, :path => "comments/feed", :only => :index, :defaults => { :format => "rss" }
+ end
+ end
+ resources :notes, :path => "note", :id => /\d+/, :only => [:show, :new]