20 |
20 |
:conditions => {:method => :get}
|
21 |
21 |
|
22 |
22 |
map.connect 'projects/:id/wiki', :controller => 'wikis',
|
23 |
|
:action => 'edit', :conditions => {:method => :post}
|
|
23 |
:action => 'edit', :conditions => {:method => :post}, :requirements => { :id => /.*/ }
|
24 |
24 |
map.connect 'projects/:id/wiki/destroy', :controller => 'wikis',
|
25 |
|
:action => 'destroy', :conditions => {:method => [:get, :post]}
|
|
25 |
:action => 'destroy', :conditions => {:method => [:get, :post]}, :requirements => { :id => /.*/ }
|
26 |
26 |
|
27 |
27 |
map.with_options :controller => 'messages' do |messages_routes|
|
28 |
28 |
messages_routes.with_options :conditions => {:method => :get} do |messages_views|
|
... | ... | |
181 |
181 |
|
182 |
182 |
project.wiki_start_page 'wiki', :controller => 'wiki', :action => 'show', :conditions => {:method => :get}
|
183 |
183 |
project.wiki_index 'wiki/index', :controller => 'wiki', :action => 'index', :conditions => {:method => :get}
|
184 |
|
project.wiki_diff 'wiki/:id/diff/:version', :controller => 'wiki', :action => 'diff', :version => nil
|
185 |
|
project.wiki_diff 'wiki/:id/diff/:version/vs/:version_from', :controller => 'wiki', :action => 'diff'
|
186 |
|
project.wiki_annotate 'wiki/:id/annotate/:version', :controller => 'wiki', :action => 'annotate'
|
|
184 |
project.wiki_diff 'wiki/:id/diff/:version', :controller => 'wiki', :action => 'diff', :version => nil, :requirements => { :id => /.*/ }
|
|
185 |
project.wiki_diff 'wiki/:id/diff/:version/vs/:version_from', :controller => 'wiki', :action => 'diff', :requirements => { :id => /.*/ }
|
|
186 |
project.wiki_annotate 'wiki/:id/annotate/:version', :controller => 'wiki', :action => 'annotate', :requirements => { :id => /.*/ }
|
187 |
187 |
project.resources :wiki, :except => [:new, :create], :member => {
|
188 |
188 |
:rename => [:get, :post],
|
189 |
189 |
:history => :get,
|
... | ... | |
193 |
193 |
}, :collection => {
|
194 |
194 |
:export => :get,
|
195 |
195 |
:date_index => :get
|
196 |
|
}
|
|
196 |
}, :requirements => { :id => /.*/ }
|
197 |
197 |
end
|
198 |
198 |
|
199 |
199 |
map.connect 'news', :controller => 'news', :action => 'index'
|