{"action":"closed","issue":{"url":"https://api.github.com/repos/jpalmieri/brewery/issues/3","labels_url":"https://api.github.com/repos/jpalmieri/brewery/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/jpalmieri/brewery/issues/3/comments","events_url":"https://api.github.com/repos/jpalmieri/brewery/issues/3/events","html_url":"https://github.com/jpalmieri/brewery/issues/3","id":55937840,"number":3,"title":"Anonymous user is able to visit recipe#new view","user":{"login":"jpalmieri","id":4692673,"avatar_url":"https://avatars.githubusercontent.com/u/4692673?v=3","gravatar_id":"","url":"https://api.github.com/users/jpalmieri","html_url":"https://github.com/jpalmieri","followers_url":"https://api.github.com/users/jpalmieri/followers","following_url":"https://api.github.com/users/jpalmieri/following{/other_user}","gists_url":"https://api.github.com/users/jpalmieri/gists{/gist_id}","starred_url":"https://api.github.com/users/jpalmieri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpalmieri/subscriptions","organizations_url":"https://api.github.com/users/jpalmieri/orgs","repos_url":"https://api.github.com/users/jpalmieri/repos","events_url":"https://api.github.com/users/jpalmieri/events{/privacy}","received_events_url":"https://api.github.com/users/jpalmieri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jpalmieri/brewery/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-29T18:31:45Z","updated_at":"2015-01-30T21:40:03Z","closed_at":"2015-01-30T21:40:03Z","body":"Steps to repro:\r\n0) log out if necessary\r\n1) visit root view\r\n2) click \"New Recipe\r\n\r\nObserved behavior:\r\nAnonymous user is able to view recipe#new\r\nUpon form submission, app crashes\r\n\r\nIntended behavior (version 1):\r\nAnonymous user is redirected to root\r\nFlash error notifies user that they must be logged in to create a new recipe\r\n\r\nIntended behavior (alternate version):\r\nWhen anonymous user initially visits root, \"New recipe\" link is not visible"}}