aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index f60d5a611..410519e0a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: routes.rb,v 1.84 2009-03-10 12:04:55 tony Exp $
+# $Id: routes.rb,v 1.85 2009-03-16 15:55:05 tony Exp $
ActionController::Routing::Routes.draw do |map|
@@ -88,6 +88,10 @@ ActionController::Routing::Routes.draw do |map|
help.help_general '/help/:action', :action => :action
end
+ map.with_options :controller => 'holiday' do |holiday|
+ holiday.due_date "/due_date/:holiday", :action => 'due_date'
+ end
+
# NB: We don't use routes to *construct* admin URLs, as they need to be relative
# paths to work on the live site proxied over HTTPS to secure.mysociety.org
map.connect '/admin/', :controller => 'admin_general', :action => 'index'