Skip to content

Instantly share code, notes, and snippets.

@briandemant
Created December 26, 2008 13:16
Show Gist options
  • Save briandemant/40064 to your computer and use it in GitHub Desktop.
Save briandemant/40064 to your computer and use it in GitHub Desktop.
# 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
helper :all # include all helpers, all the time
# See ActionController::RequestForgeryProtection for details
# Uncomment the :secret if you're not using the cookie session store
protect_from_forgery # :secret => '7062f5deb1b5157b7df647c519a0de7f'
# See ActionController::Base for details
# Uncomment this to filter the contents of submitted sensitive data parameters
# from your application log (in this case, all fields with names like "password").
# filter_parameter_logging :password
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment