summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-15 22:49:03 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-15 22:49:03 +0000
commit84dd4ecbd4a0b5639eda9875306db6b501aba161 (patch)
tree2f75d5cf71ca3d2d3ac405010d4ae2420fe82255 /config
parentf7618160ad0178b4ce2eb624cd0771acad227887 (diff)
downloadredmine-84dd4ecbd4a0b5639eda9875306db6b501aba161.tar.gz
redmine-84dd4ecbd4a0b5639eda9875306db6b501aba161.zip
route: split issue preview route to adding and editing
"No route matches" error raises in "preview_issue_path" at app/views/issues/new.html.erb:35 on Rails 3.0.11 and Rails 3.1.3 new route format. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8886 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 583eff755..552ecb911 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -44,8 +44,10 @@ ActionController::Routing::Routes.draw do |map|
map.auto_complete_issues '/issues/auto_complete', :controller => 'auto_completes',
:action => 'issues', :conditions => { :method => :get }
# TODO: would look nicer as /issues/:id/preview
- map.preview_issue '/issues/preview/:id', :controller => 'previews',
- :action => 'issue'
+ map.preview_new_issue '/issues/preview/new/:project_id', :controller => 'previews',
+ :action => 'issue'
+ map.preview_edit_issue '/issues/preview/edit/:id', :controller => 'previews',
+ :action => 'issue'
map.issues_context_menu '/issues/context_menu',
:controller => 'context_menus', :action => 'issues'