@@ -106,8 +106,8 ActionController::Routing::Routes.draw do |map| | |||||
106 | # For nice "roadmap" in the url for the index action |
|
106 | # For nice "roadmap" in the url for the index action | |
107 | map.connect 'projects/:project_id/roadmap', :controller => 'versions', :action => 'index' |
|
107 | map.connect 'projects/:project_id/roadmap', :controller => 'versions', :action => 'index' | |
108 |
|
108 | |||
109 |
map. |
|
109 | map.connect 'news', :controller => 'news', :action => 'index' | |
110 |
map. |
|
110 | map.connect 'news.:format', :controller => 'news', :action => 'index' | |
111 | map.preview_news '/news/preview', :controller => 'previews', :action => 'news' |
|
111 | map.preview_news '/news/preview', :controller => 'previews', :action => 'news' | |
112 | map.connect 'news/:id/comments', :controller => 'comments', :action => 'create', :conditions => {:method => :post} |
|
112 | map.connect 'news/:id/comments', :controller => 'comments', :action => 'create', :conditions => {:method => :post} | |
113 | map.connect 'news/:id/comments/:comment_id', :controller => 'comments', :action => 'destroy', :conditions => {:method => :delete} |
|
113 | map.connect 'news/:id/comments/:comment_id', :controller => 'comments', :action => 'destroy', :conditions => {:method => :delete} |
General Comments 0
You need to be logged in to leave comments.
Login now