##// END OF EJS Templates
route: code layout clean up comments route...
Toshi MARUYAMA -
r8259:adf8d0144e03
parent child
Show More
@@ -130,8 +130,10 ActionController::Routing::Routes.draw do |map|
130 map.connect 'news', :controller => 'news', :action => 'index'
130 map.connect 'news', :controller => 'news', :action => 'index'
131 map.connect 'news.:format', :controller => 'news', :action => 'index'
131 map.connect 'news.:format', :controller => 'news', :action => 'index'
132 map.preview_news '/news/preview', :controller => 'previews', :action => 'news'
132 map.preview_news '/news/preview', :controller => 'previews', :action => 'news'
133 map.connect 'news/:id/comments', :controller => 'comments', :action => 'create', :conditions => {:method => :post}
133 map.connect 'news/:id/comments', :controller => 'comments',
134 map.connect 'news/:id/comments/:comment_id', :controller => 'comments', :action => 'destroy', :conditions => {:method => :delete}
134 :action => 'create', :conditions => {:method => :post}
135 map.connect 'news/:id/comments/:comment_id', :controller => 'comments',
136 :action => 'destroy', :conditions => {:method => :delete}
135
137
136 map.connect 'watchers/new', :controller=> 'watchers', :action => 'new', :conditions => {:method => [:get, :post]}
138 map.connect 'watchers/new', :controller=> 'watchers', :action => 'new', :conditions => {:method => [:get, :post]}
137 map.connect 'watchers/destroy', :controller=> 'watchers', :action => 'destroy', :conditions => {:method => :post}
139 map.connect 'watchers/destroy', :controller=> 'watchers', :action => 'destroy', :conditions => {:method => :post}
General Comments 0
You need to be logged in to leave comments. Login now