@@ -121,8 +121,6 ActionController::Routing::Routes.draw do |map| | |||||
121 | # For nice "roadmap" in the url for the index action |
|
121 | # For nice "roadmap" in the url for the index action | |
122 | map.connect 'projects/:project_id/roadmap', :controller => 'versions', :action => 'index' |
|
122 | map.connect 'projects/:project_id/roadmap', :controller => 'versions', :action => 'index' | |
123 |
|
123 | |||
124 | map.connect 'news', :controller => 'news', :action => 'index' |
|
|||
125 | map.connect 'news.:format', :controller => 'news', :action => 'index' |
|
|||
126 | map.preview_news '/news/preview', :controller => 'previews', :action => 'news' |
|
124 | map.preview_news '/news/preview', :controller => 'previews', :action => 'news' | |
127 | map.connect 'news/:id/comments', :controller => 'comments', |
|
125 | map.connect 'news/:id/comments', :controller => 'comments', | |
128 | :action => 'create', :conditions => {:method => :post} |
|
126 | :action => 'create', :conditions => {:method => :post} | |
@@ -193,6 +191,9 ActionController::Routing::Routes.draw do |map| | |||||
193 | } |
|
191 | } | |
194 | end |
|
192 | end | |
195 |
|
193 | |||
|
194 | map.connect 'news', :controller => 'news', :action => 'index' | |||
|
195 | map.connect 'news.:format', :controller => 'news', :action => 'index' | |||
|
196 | ||||
196 | map.resources :queries, :except => [:show] |
|
197 | map.resources :queries, :except => [:show] | |
197 | map.resources :issues, |
|
198 | map.resources :issues, | |
198 | :collection => {:bulk_edit => [:get, :post], :bulk_update => :post} do |issues| |
|
199 | :collection => {:bulk_edit => [:get, :post], :bulk_update => :post} do |issues| |
General Comments 0
You need to be logged in to leave comments.
Login now