aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/code/getting_started/app/controllers/application_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/guides/code/getting_started/app/controllers/application_controller.rb')
-rw-r--r--railties/guides/code/getting_started/app/controllers/application_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/guides/code/getting_started/app/controllers/application_controller.rb b/railties/guides/code/getting_started/app/controllers/application_controller.rb
new file mode 100644
index 0000000000..e8065d9505
--- /dev/null
+++ b/railties/guides/code/getting_started/app/controllers/application_controller.rb
@@ -0,0 +1,3 @@
+class ApplicationController < ActionController::Base
+ protect_from_forgery
+end