{"action":"created","issue":{"url":"https://api.github.com/repos/veracross/pickadate-rails/issues/13","labels_url":"https://api.github.com/repos/veracross/pickadate-rails/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/veracross/pickadate-rails/issues/13/comments","events_url":"https://api.github.com/repos/veracross/pickadate-rails/issues/13/events","html_url":"https://github.com/veracross/pickadate-rails/issues/13","id":89855449,"number":13,"title":"Requiring translation files generates CSRF related error.","user":{"login":"pablocrivella","id":1854923,"avatar_url":"https://avatars.githubusercontent.com/u/1854923?v=3","gravatar_id":"","url":"https://api.github.com/users/pablocrivella","html_url":"https://github.com/pablocrivella","followers_url":"https://api.github.com/users/pablocrivella/followers","following_url":"https://api.github.com/users/pablocrivella/following{/other_user}","gists_url":"https://api.github.com/users/pablocrivella/gists{/gist_id}","starred_url":"https://api.github.com/users/pablocrivella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablocrivella/subscriptions","organizations_url":"https://api.github.com/users/pablocrivella/orgs","repos_url":"https://api.github.com/users/pablocrivella/repos","events_url":"https://api.github.com/users/pablocrivella/events{/privacy}","received_events_url":"https://api.github.com/users/pablocrivella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-21T03:00:28Z","updated_at":"2015-11-10T14:57:06Z","closed_at":null,"body":"When i add \r\n```\r\n\r\n//= require pickadate/translations/es_ES\r\n```\r\nto ```application.js``` I get this error:\r\n\r\n```\r\nCan't verify CSRF token authenticity\r\nCompleted 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)\r\n```\r\n\r\nIf i remove that line it works fine."},"comment":{"url":"https://api.github.com/repos/veracross/pickadate-rails/issues/comments/155441874","html_url":"https://github.com/veracross/pickadate-rails/issues/13#issuecomment-155441874","issue_url":"https://api.github.com/repos/veracross/pickadate-rails/issues/13","id":155441874,"user":{"login":"sigvei","id":34950,"avatar_url":"https://avatars.githubusercontent.com/u/34950?v=3","gravatar_id":"","url":"https://api.github.com/users/sigvei","html_url":"https://github.com/sigvei","followers_url":"https://api.github.com/users/sigvei/followers","following_url":"https://api.github.com/users/sigvei/following{/other_user}","gists_url":"https://api.github.com/users/sigvei/gists{/gist_id}","starred_url":"https://api.github.com/users/sigvei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigvei/subscriptions","organizations_url":"https://api.github.com/users/sigvei/orgs","repos_url":"https://api.github.com/users/sigvei/repos","events_url":"https://api.github.com/users/sigvei/events{/privacy}","received_events_url":"https://api.github.com/users/sigvei/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T14:57:06Z","updated_at":"2015-11-10T14:57:06Z","body":"I haven't got much to add as to why this happens, but I can confirm that this happens for me as well. Seems like a really weird bug."}}