Skip to content

Commit

Permalink
Make ajax calls work. Maybe too agressive?
Browse files Browse the repository at this point in the history
  • Loading branch information
dbenamy committed Dec 14, 2012
1 parent 405e076 commit d6de602
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/controllers/application.rb
Expand Up @@ -7,8 +7,10 @@ class ApplicationController < ActionController::Base
layout 'layout'
# See ActionController::RequestForgeryProtection for details
# Uncomment the :secret if you're not using the cookie session store
protect_from_forgery # :secret => 'a721e67c89b39d5e55d6a42e3b5c1fa0'

#protect_from_forgery # :secret => 'a721e67c89b39d5e55d6a42e3b5c1fa0' # liger1 but not liger2 had this line commented out
skip_before_filter :verify_authenticity_token # liger2 but not liger1 had this line added
# One or both of the above lines turns off security features that weren't working nicely with ajax calls.

# 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").
Expand Down

0 comments on commit d6de602

Please sign in to comment.