summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb6
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}