From 968ee79afce96bcf28b0a1502c6183c0d736dffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Sch=C3=BCssler?= Date: Thu, 7 Jun 2012 10:52:46 +0200 Subject: [PATCH] refs #6560 - this re-activates the formerly magic routes see: http://www.redmine.org/projects/redmine/wiki/Plugin_Tutorial#Generating-a-controller (Starting from 1.4.0, Redmine won't provide anymore the default wildcard route (':controller/:action/:id'). Plugins will have to declare the routes they need in their proper config/routes.rb file.) --- config/routes.rb | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 config/routes.rb diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 0000000..b27808b --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,4 @@ + +ActionController::Routing::Routes.draw do |map| + map.connect 'questions/:action/:id', :controller => 'questions' +end