From adf8d0144e03bd7a9866c8128aa071ba601aba46 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 26 Dec 2011 11:47:23 +0000 Subject: [PATCH] route: code layout clean up comments route git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8379 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 466b29426..873369f93 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -130,8 +130,10 @@ ActionController::Routing::Routes.draw do |map| map.connect 'news', :controller => 'news', :action => 'index' map.connect 'news.:format', :controller => 'news', :action => 'index' map.preview_news '/news/preview', :controller => 'previews', :action => 'news' - map.connect 'news/:id/comments', :controller => 'comments', :action => 'create', :conditions => {:method => :post} - map.connect 'news/:id/comments/:comment_id', :controller => 'comments', :action => 'destroy', :conditions => {:method => :delete} + map.connect 'news/:id/comments', :controller => 'comments', + :action => 'create', :conditions => {:method => :post} + map.connect 'news/:id/comments/:comment_id', :controller => 'comments', + :action => 'destroy', :conditions => {:method => :delete} map.connect 'watchers/new', :controller=> 'watchers', :action => 'new', :conditions => {:method => [:get, :post]} map.connect 'watchers/destroy', :controller=> 'watchers', :action => 'destroy', :conditions => {:method => :post} -- 2.39.5