{"action":"created","issue":{"url":"https://api.github.com/repos/locomotivecms/engine/issues/1244","repository_url":"https://api.github.com/repos/locomotivecms/engine","labels_url":"https://api.github.com/repos/locomotivecms/engine/issues/1244/labels{/name}","comments_url":"https://api.github.com/repos/locomotivecms/engine/issues/1244/comments","events_url":"https://api.github.com/repos/locomotivecms/engine/issues/1244/events","html_url":"https://github.com/locomotivecms/engine/issues/1244","id":340426051,"node_id":"MDU6SXNzdWUzNDA0MjYwNTE=","number":1244,"title":"RAILS 5 / HEROKU Can't verify CSRF token authenticity. Completed 422 Unprocessable Entity. ","user":{"login":"potluckcatering","id":41126701,"node_id":"MDQ6VXNlcjQxMTI2NzAx","avatar_url":"https://avatars2.githubusercontent.com/u/41126701?v=4","gravatar_id":"","url":"https://api.github.com/users/potluckcatering","html_url":"https://github.com/potluckcatering","followers_url":"https://api.github.com/users/potluckcatering/followers","following_url":"https://api.github.com/users/potluckcatering/following{/other_user}","gists_url":"https://api.github.com/users/potluckcatering/gists{/gist_id}","starred_url":"https://api.github.com/users/potluckcatering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/potluckcatering/subscriptions","organizations_url":"https://api.github.com/users/potluckcatering/orgs","repos_url":"https://api.github.com/users/potluckcatering/repos","events_url":"https://api.github.com/users/potluckcatering/events{/privacy}","received_events_url":"https://api.github.com/users/potluckcatering/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-07-11T22:21:03Z","updated_at":"2018-08-23T14:38:12Z","closed_at":null,"author_association":"NONE","body":"Hi I realize 3.4 is in beta, however was wondering if you could still provide some guidance. I've deployed Engine to Heroku using rails 5.1.6 and ruby 2.5.1. The deployment went fine, however when I try to create a new account I am greeted with: \r\n<img width=\"536\" alt=\"screen shot 2018-07-11 at 3 17 26 pm\" src=\"https://user-images.githubusercontent.com/41126701/42602282-9a4e5742-851d-11e8-9c02-64c76496670e.png\">\r\nAlso the logs:\r\n<img width=\"1406\" alt=\"screen shot 2018-07-11 at 3 18 38 pm\" src=\"https://user-images.githubusercontent.com/41126701/42602312-bc7743ba-851d-11e8-9aab-bc1fa9dad2d3.png\">\r\nI'm aware that its possible to add the  skip_before_action :verify_authenticity_token in the application controller but feel that is not the appropriate way to go about this. Any guidance from the Locomotive team would be great.\r\n\r\nThanks in advance!\r\n"},"comment":{"url":"https://api.github.com/repos/locomotivecms/engine/issues/comments/415441987","html_url":"https://github.com/locomotivecms/engine/issues/1244#issuecomment-415441987","issue_url":"https://api.github.com/repos/locomotivecms/engine/issues/1244","id":415441987,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTQ0MTk4Nw==","user":{"login":"JacobEvelyn","id":1114569,"node_id":"MDQ6VXNlcjExMTQ1Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/1114569?v=4","gravatar_id":"","url":"https://api.github.com/users/JacobEvelyn","html_url":"https://github.com/JacobEvelyn","followers_url":"https://api.github.com/users/JacobEvelyn/followers","following_url":"https://api.github.com/users/JacobEvelyn/following{/other_user}","gists_url":"https://api.github.com/users/JacobEvelyn/gists{/gist_id}","starred_url":"https://api.github.com/users/JacobEvelyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacobEvelyn/subscriptions","organizations_url":"https://api.github.com/users/JacobEvelyn/orgs","repos_url":"https://api.github.com/users/JacobEvelyn/repos","events_url":"https://api.github.com/users/JacobEvelyn/events{/privacy}","received_events_url":"https://api.github.com/users/JacobEvelyn/received_events","type":"User","site_admin":false},"created_at":"2018-08-23T14:38:11Z","updated_at":"2018-08-23T14:38:11Z","author_association":"NONE","body":"Thanks for the help, @gridar. I tried adding that initializer and now when I try to register a new account I get this error resulting in a 500 response:\r\n\r\n```\r\n[LocomotiveCMS] [ApplicationError] #<Module::DelegationError: Locomotive::ApplicationPolicy#account delegated to membership.account, but membership is nil: #<Locomotive::SitePolicy:0x00007f944ea2d700 @membership=nil, @resource=Locomotive::Site>>\r\n\r\nvendor/bundle/ruby/2.5.0/bundler/gems/engine-a6302d231603/app/policies/locomotive/application_policy.rb:15:in `rescue in account'\r\nModule::DelegationError (Locomotive::ApplicationPolicy#account delegated to membership.account, but membership is nil: #<Locomotive::SitePolicy:0x00007f944ea2d700 @membership=nil, @resource=Locomotive::Site>):\r\nvendor/bundle/ruby/2.5.0/bundler/gems/engine-a6302d231603/app/policies/locomotive/application_policy.rb:15:in `account'\r\nvendor/bundle/ruby/2.5.0/bundler/gems/engine-a6302d231603/app/policies/locomotive/application_policy.rb:24:in `initialize'\r\n...\r\n```"}}
{"actor":{"display_login":"JacobEvelyn"}}