Avoiding ActionController::InvalidAuthenticityToken on AJAX calls
Add this on Application class:
config.action_view.embed_authenticity_token_in_remote_forms = true
Written by Oswaldo Ferreira
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#