@@ -130,8 +130,10 ActionController::Routing::Routes.draw do |map| | |||
|
130 | 130 | map.connect 'news', :controller => 'news', :action => 'index' |
|
131 | 131 | map.connect 'news.:format', :controller => 'news', :action => 'index' |
|
132 | 132 | map.preview_news '/news/preview', :controller => 'previews', :action => 'news' |
|
133 |
map.connect 'news/:id/comments', :controller => 'comments', |
|
|
134 | map.connect 'news/:id/comments/:comment_id', :controller => 'comments', :action => 'destroy', :conditions => {:method => :delete} | |
|
133 | map.connect 'news/:id/comments', :controller => 'comments', | |
|
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 | 138 | map.connect 'watchers/new', :controller=> 'watchers', :action => 'new', :conditions => {:method => [:get, :post]} |
|
137 | 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