Revision 4239
Added by Eric Davis over 14 years ago
routes.rb | ||
---|---|---|
15 | 15 |
map.connect 'help/:ctrl/:page', :controller => 'help' |
16 | 16 |
|
17 | 17 |
map.connect 'time_entries/:id/edit', :action => 'edit', :controller => 'timelog' |
18 |
map.connect 'projects/:project_id/time_entries/new', :action => 'edit', :controller => 'timelog'
|
|
19 |
map.connect 'projects/:project_id/issues/:issue_id/time_entries/new', :action => 'edit', :controller => 'timelog'
|
|
18 |
map.connect 'projects/:project_id/time_entries/new', :action => 'new', :controller => 'timelog'
|
|
19 |
map.connect 'projects/:project_id/issues/:issue_id/time_entries/new', :action => 'new', :controller => 'timelog'
|
|
20 | 20 |
|
21 | 21 |
map.with_options :controller => 'timelog' do |timelog| |
22 | 22 |
timelog.connect 'projects/:project_id/time_entries', :action => 'index' |
... | ... | |
37 | 37 |
time_report.connect 'projects/:project_id/time_entries/report.:format' |
38 | 38 |
end |
39 | 39 |
|
40 |
timelog.with_options :action => 'edit', :conditions => {:method => :get} do |time_edit|
|
|
40 |
timelog.with_options :action => 'new', :conditions => {:method => :get} do |time_edit|
|
|
41 | 41 |
time_edit.connect 'issues/:issue_id/time_entries/new' |
42 | 42 |
end |
43 | 43 |
|
Also available in: Unified diff
Refactor: extract TimelogController#new from #edit