From 44a1ce4938b8cd326b9a0d0b1e537ec9a80cd6ce Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 18 Feb 2014 09:48:34 -0500 Subject: Run `rails new` --- app/controllers/application_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/controllers/application_controller.rb (limited to 'app/controllers/application_controller.rb') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 0000000..d83690e --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,5 @@ +class ApplicationController < ActionController::Base + # Prevent CSRF attacks by raising an exception. + # For APIs, you may want to use :null_session instead. + protect_from_forgery with: :exception +end -- cgit v1.2.3