From c36fcec628a11f6f7aeb30e97cbef210a67e3a3a Mon Sep 17 00:00:00 2001 From: jcopp <jcopp@sportingnews.com> Date: Wed, 4 Apr 2012 14:58:38 -0400 Subject: [PATCH 1/3] Copy routes.rb to config dir and update their format to work with newer versions of Rails/Redmine --- config/routes.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 config/routes.rb diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 0000000..1b2cd65 --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,6 @@ +ActionController::Routing::Routes.draw do |map| + map.connect 'projects/:project_id/issues/old', :controller => 'graphs', :action => 'old_issues' + map.connect 'issues/old', :controller => 'graphs', :action => 'old_issues' + map.connect 'projects/:project_id/issues/growth', :controller => 'graphs', :action => 'issue_growth' + map.connect 'issues/growth', :controller => 'graphs', :action => 'issue_growth' +end From 933ccee63ef88579c4961d7be56d46fb6d40fd9c Mon Sep 17 00:00:00 2001 From: jcopp <jcopp@sportingnews.com> Date: Thu, 5 Apr 2012 02:50:38 -0400 Subject: [PATCH 2/3] Add missing routes that were causing templates to throw errors --- config/routes.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 1b2cd65..0f9de44 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,8 @@ ActionController::Routing::Routes.draw do |map| map.connect 'projects/:project_id/issues/old', :controller => 'graphs', :action => 'old_issues' map.connect 'issues/old', :controller => 'graphs', :action => 'old_issues' + map.connect ':project_id/issue_age_graph', :controller => 'graphs', :action => 'issue_age_graph' map.connect 'projects/:project_id/issues/growth', :controller => 'graphs', :action => 'issue_growth' map.connect 'issues/growth', :controller => 'graphs', :action => 'issue_growth' + map.connect ':project_id/issue_growth_graph', :controller => 'graphs', :action => 'issue_growth_graph' end From 3a5f4389c7a6006384784d46bc497eae75acfda9 Mon Sep 17 00:00:00 2001 From: jaugustin <jeremie.augustin@pixel-cookers.com> Date: Mon, 21 May 2012 17:02:17 +0200 Subject: [PATCH 3/3] fix routes.rb, add route for my page graph and roadmap graph --- config/routes.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index 0f9de44..45d7cf5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,4 +5,7 @@ ActionController::Routing::Routes.draw do |map| map.connect 'projects/:project_id/issues/growth', :controller => 'graphs', :action => 'issue_growth' map.connect 'issues/growth', :controller => 'graphs', :action => 'issue_growth' map.connect ':project_id/issue_growth_graph', :controller => 'graphs', :action => 'issue_growth_graph' + map.connect 'graphs/recent-status-changes', :controller=>"graphs", :action=>"recent_status_changes_graph" + map.connect 'graphs/recent-assigned-to-changes', :controller=>"graphs", :action=>"recent_assigned_to_changes_graph" + map.connect 'graphs/target-version/:id', :controller=>"graphs", :action=>"target_version_graph" end