summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-01-29 20:41:18 +0100
committerhukl <hukl@eight.local>2009-01-29 20:41:18 +0100
commitb298d3e8eeb10903bd4640dab7c11d0dc1be9d38 (patch)
treed8d0a8449972a46e551be3b94e7dd02b6107b119 /app
initial import with edge rails included as a submodule
Diffstat (limited to 'app')
-rw-r--r--app/controllers/application_controller.rb10
-rw-r--r--app/helpers/application_helper.rb3
2 files changed, 13 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
new file mode 100644
index 0000000..6635a3f
--- /dev/null
+++ b/app/controllers/application_controller.rb
@@ -0,0 +1,10 @@
1# Filters added to this controller apply to all controllers in the application.
2# Likewise, all the methods added will be available for all controllers.
3
4class ApplicationController < ActionController::Base
5 helper :all # include all helpers, all the time
6 protect_from_forgery # See ActionController::RequestForgeryProtection for details
7
8 # Scrub sensitive parameters from your log
9 # filter_parameter_logging :password
10end
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
new file mode 100644
index 0000000..22a7940
--- /dev/null
+++ b/app/helpers/application_helper.rb
@@ -0,0 +1,3 @@
1# Methods added to this helper will be available to all templates in the application.
2module ApplicationHelper
3end