{"action":"closed","issue":{"url":"https://api.github.com/repos/nsarno/knock/issues/138","repository_url":"https://api.github.com/repos/nsarno/knock","labels_url":"https://api.github.com/repos/nsarno/knock/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/nsarno/knock/issues/138/comments","events_url":"https://api.github.com/repos/nsarno/knock/issues/138/events","html_url":"https://github.com/nsarno/knock/issues/138","id":203899018,"number":138,"title":"Rails 5, \"skip_before_action :authenticate_user\" in every controller throw: \"ArgumentError: Before process_action callback :authenticate_user has not been defined\"","user":{"login":"johnunclesam","id":21275217,"avatar_url":"https://avatars.githubusercontent.com/u/21275217?v=3","gravatar_id":"","url":"https://api.github.com/users/johnunclesam","html_url":"https://github.com/johnunclesam","followers_url":"https://api.github.com/users/johnunclesam/followers","following_url":"https://api.github.com/users/johnunclesam/following{/other_user}","gists_url":"https://api.github.com/users/johnunclesam/gists{/gist_id}","starred_url":"https://api.github.com/users/johnunclesam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnunclesam/subscriptions","organizations_url":"https://api.github.com/users/johnunclesam/orgs","repos_url":"https://api.github.com/users/johnunclesam/repos","events_url":"https://api.github.com/users/johnunclesam/events{/privacy}","received_events_url":"https://api.github.com/users/johnunclesam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-01-29T21:46:27Z","updated_at":"2017-02-13T02:39:50Z","closed_at":"2017-02-13T02:39:50Z","body":"I'm using **Rails 5** and if I use:\r\n\r\n```ruby\r\n  skip_before_action :authenticate_user, only: [:create]\r\n```\r\n\r\nin every controller (it doesn't matter which), Rails throw this error:\r\n\r\n```ruby\r\n\"ArgumentError: Before process_action callback :authenticate_user has not been defined\"\r\n```\r\n\r\nI fixed this temporarily by adding this:\r\n\r\n```ruby\r\n  skip_before_action :authenticate_user, only: [:create], raise: false\r\n```\r\n\r\n**Why this?**\r\n\r\nThe same problem people have here: https://github.com/plataformatec/devise/issues/4207"}}
{"actor":{"display_login":"nsarno"}}