@@ -141,10 +141,14 ActionController::Routing::Routes.draw do |map| | |||
|
141 | 141 | map.connect 'news/:id/comments/:comment_id', :controller => 'comments', |
|
142 | 142 | :action => 'destroy', :conditions => {:method => :delete} |
|
143 | 143 | |
|
144 |
map.connect 'watchers/new', :controller=> 'watchers', :action => 'new', |
|
|
145 | map.connect 'watchers/destroy', :controller=> 'watchers', :action => 'destroy', :conditions => {:method => :post} | |
|
146 |
map.connect 'watchers/ |
|
|
147 | map.connect 'watchers/unwatch', :controller=> 'watchers', :action => 'unwatch', :conditions => {:method => :post} | |
|
144 | map.connect 'watchers/new', :controller=> 'watchers', :action => 'new', | |
|
145 | :conditions => {:method => [:get, :post]} | |
|
146 | map.connect 'watchers/destroy', :controller=> 'watchers', :action => 'destroy', | |
|
147 | :conditions => {:method => :post} | |
|
148 | map.connect 'watchers/watch', :controller=> 'watchers', :action => 'watch', | |
|
149 | :conditions => {:method => :post} | |
|
150 | map.connect 'watchers/unwatch', :controller=> 'watchers', :action => 'unwatch', | |
|
151 | :conditions => {:method => :post} | |
|
148 | 152 | |
|
149 | 153 | map.resources :projects, :member => { |
|
150 | 154 | :copy => [:get, :post], |
General Comments 0
You need to be logged in to leave comments.
Login now