diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-26 11:47:23 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-26 11:47:23 +0000 |
commit | adf8d0144e03bd7a9866c8128aa071ba601aba46 (patch) | |
tree | 2877d64424eaa3cc8dbb8eb9454ac9982fcdcff0 /config | |
parent | adfb4f4b4cc7764e181ca65149ab6dc6dade0e31 (diff) | |
download | redmine-adf8d0144e03bd7a9866c8128aa071ba601aba46.tar.gz redmine-adf8d0144e03bd7a9866c8128aa071ba601aba46.zip |
route: code layout clean up comments route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8379 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 6 |
1 files 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} |