aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorfrancis <francis>2007-08-01 10:25:55 +0000
committerfrancis <francis>2007-08-01 10:25:55 +0000
commitb1b3c7b5f4e13ba332d92c962d024a8658b9ee4b (patch)
tree8d475b768e6029ad683125568ef453896cb9a8a2 /app
Default Rails gumph.
Diffstat (limited to 'app')
-rw-r--r--app/controllers/application.rb7
-rw-r--r--app/helpers/application_helper.rb3
2 files changed, 10 insertions, 0 deletions
diff --git a/app/controllers/application.rb b/app/controllers/application.rb
new file mode 100644
index 000000000..dcae8385b
--- /dev/null
+++ b/app/controllers/application.rb
@@ -0,0 +1,7 @@
+# Filters added to this controller apply to all controllers in the application.
+# Likewise, all the methods added will be available for all controllers.
+
+class ApplicationController < ActionController::Base
+ # Pick a unique cookie name to distinguish our session data from others'
+ session :session_key => '_foi_session_id'
+end
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
new file mode 100644
index 000000000..22a7940eb
--- /dev/null
+++ b/app/helpers/application_helper.rb
@@ -0,0 +1,3 @@
+# Methods added to this helper will be available to all templates in the application.
+module ApplicationHelper
+end