summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-07 15:51:09 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-07 15:51:09 +0000
commit068771ea0764e326d720455c87e6c8cbc0f825a3 (patch)
treea79f34bf8471a43b3d0829507bdfcd8b716eba63 /config/routes.rb
parente59156b446f1e402c95d04c39374630f2913b611 (diff)
downloadredmine-068771ea0764e326d720455c87e6c8cbc0f825a3.tar.gz
redmine-068771ea0764e326d720455c87e6c8cbc0f825a3.zip
Refactor: extract TimelogController#new from #edit
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4239 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 87aefa806..34ee875ea 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -15,8 +15,8 @@ ActionController::Routing::Routes.draw do |map|
map.connect 'help/:ctrl/:page', :controller => 'help'
map.connect 'time_entries/:id/edit', :action => 'edit', :controller => 'timelog'
- map.connect 'projects/:project_id/time_entries/new', :action => 'edit', :controller => 'timelog'
- map.connect 'projects/:project_id/issues/:issue_id/time_entries/new', :action => 'edit', :controller => 'timelog'
+ map.connect 'projects/:project_id/time_entries/new', :action => 'new', :controller => 'timelog'
+ map.connect 'projects/:project_id/issues/:issue_id/time_entries/new', :action => 'new', :controller => 'timelog'
map.with_options :controller => 'timelog' do |timelog|
timelog.connect 'projects/:project_id/time_entries', :action => 'index'
@@ -37,7 +37,7 @@ ActionController::Routing::Routes.draw do |map|
time_report.connect 'projects/:project_id/time_entries/report.:format'
end
- timelog.with_options :action => 'edit', :conditions => {:method => :get} do |time_edit|
+ timelog.with_options :action => 'new', :conditions => {:method => :get} do |time_edit|
time_edit.connect 'issues/:issue_id/time_entries/new'
end