aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/general.yml-example5
-rw-r--r--config/routes.rb6
2 files changed, 8 insertions, 3 deletions
diff --git a/config/general.yml-example b/config/general.yml-example
index ed04e0fd5..211161606 100644
--- a/config/general.yml-example
+++ b/config/general.yml-example
@@ -142,3 +142,8 @@ EXCEPTION_NOTIFICATIONS_TO:
# This rate limiting can be turned off per-user via the admin interface
MAX_REQUESTS_PER_USER_PER_DAY: 6
+
+SURVEY_URL: http://survey.mysociety.org/
+# The shared secret needed to authenticate with the survey service
+SURVEY_SECRET: 12345678910
+
diff --git a/config/routes.rb b/config/routes.rb
index fa387a106..747cc9b06 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -6,6 +6,9 @@
#
# $Id: routes.rb,v 1.92 2009-10-14 22:01:27 francis Exp $
+# Allow easy extension from themes. Note these will have the highest priority.
+load File.join('config', 'custom-routes.rb')
+
ActionController::Routing::Routes.draw do |map|
# The priority is based upon order of creation: first created -> highest priority.
@@ -14,9 +17,6 @@ ActionController::Routing::Routes.draw do |map|
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
- # Allow easy extension from themes. Note these will have the highest priority.
- require File.join('config', 'custom-routes')
-
map.with_options :controller => 'general' do |general|
general.frontpage '/', :action => 'frontpage'
general.blog '/blog', :action => 'blog'