{"action":"created","issue":{"url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/6","labels_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/6/comments","events_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/6/events","html_url":"https://github.com/LearnITGirl/WebPlatform/pull/6","id":106309626,"number":6,"title":"Loginpage","user":{"login":"pg20","id":6608218,"avatar_url":"https://avatars.githubusercontent.com/u/6608218?v=3","gravatar_id":"","url":"https://api.github.com/users/pg20","html_url":"https://github.com/pg20","followers_url":"https://api.github.com/users/pg20/followers","following_url":"https://api.github.com/users/pg20/following{/other_user}","gists_url":"https://api.github.com/users/pg20/gists{/gist_id}","starred_url":"https://api.github.com/users/pg20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pg20/subscriptions","organizations_url":"https://api.github.com/users/pg20/orgs","repos_url":"https://api.github.com/users/pg20/repos","events_url":"https://api.github.com/users/pg20/events{/privacy}","received_events_url":"https://api.github.com/users/pg20/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-14T09:59:41Z","updated_at":"2015-09-29T14:53:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/6","html_url":"https://github.com/LearnITGirl/WebPlatform/pull/6","diff_url":"https://github.com/LearnITGirl/WebPlatform/pull/6.diff","patch_url":"https://github.com/LearnITGirl/WebPlatform/pull/6.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/comments/144084908","html_url":"https://github.com/LearnITGirl/WebPlatform/pull/6#issuecomment-144084908","issue_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/6","id":144084908,"user":{"login":"RMaksymczuk","id":5939407,"avatar_url":"https://avatars.githubusercontent.com/u/5939407?v=3","gravatar_id":"","url":"https://api.github.com/users/RMaksymczuk","html_url":"https://github.com/RMaksymczuk","followers_url":"https://api.github.com/users/RMaksymczuk/followers","following_url":"https://api.github.com/users/RMaksymczuk/following{/other_user}","gists_url":"https://api.github.com/users/RMaksymczuk/gists{/gist_id}","starred_url":"https://api.github.com/users/RMaksymczuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RMaksymczuk/subscriptions","organizations_url":"https://api.github.com/users/RMaksymczuk/orgs","repos_url":"https://api.github.com/users/RMaksymczuk/repos","events_url":"https://api.github.com/users/RMaksymczuk/events{/privacy}","received_events_url":"https://api.github.com/users/RMaksymczuk/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T14:53:26Z","updated_at":"2015-09-29T14:53:26Z","body":"ok, so it work quite nice, but I we are still missing some links on our homepage. I know that the layout will change, but it would be good to have a possibility to test the functionality completely. Please, add a link on homepage, that will lead you to \\login page if user is not logged in, and link to \\logout page(with method :destroy), when user is already logged in. Your logged in user should be set as @current_user, so you can display, on homepage '@current_user.name' or check if anyone is logged in by: @current_user.present?"}}