{"action":"created","comment":{"url":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/comments/40680510","id":40680510,"diff_hunk":"@@ -1,4 +1,6 @@\n Webplatform::Application.routes.draw do\n+\n+  resource :user_sessions","path":"config/routes.rb","position":3,"original_position":3,"commit_id":"0f188971406a6aa66e74394c4e9094d7fb57f1fa","original_commit_id":"0f188971406a6aa66e74394c4e9094d7fb57f1fa","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},"body":"so, I'm not sure if you were using 'rake routes' command, but try to run it in shell in your project directory. You should see all the links/paths that are available in our project. Look for 'user_sessions#new' and 'user_sessions#destroy'. They both appears 2 times, it's because 'resource' generated its own paths for this actions, but we already added our own paths (\\login and 'logout) to this actions. As we don't need to generate all of those routes and we don't need duplication, lets add some additional information to 'resource'. So it will be:\r\n\r\n resources :user_sessions, only: [:create]\r\n\r\ntry now to run 'rake routes'. Maybe it is just a cosmetic change, but its not so good to create all this routes when we don't need them :)\r\n","created_at":"2015-09-29T14:46:27Z","updated_at":"2015-09-29T14:46:27Z","html_url":"https://github.com/LearnITGirl/WebPlatform/pull/6#discussion_r40680510","pull_request_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/comments/40680510"},"html":{"href":"https://github.com/LearnITGirl/WebPlatform/pull/6#discussion_r40680510"},"pull_request":{"href":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/6","id":44911869,"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","issue_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/6","number":6,"state":"open","locked":false,"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},"body":"","created_at":"2015-09-14T09:59:41Z","updated_at":"2015-09-29T14:46:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"690e5d829feac99f85bccb8f69de25b2ecab036c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/6/commits","review_comments_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/6/comments","review_comment_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/6/comments","statuses_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/statuses/0f188971406a6aa66e74394c4e9094d7fb57f1fa","head":{"label":"LearnITGirl:loginpage","ref":"loginpage","sha":"0f188971406a6aa66e74394c4e9094d7fb57f1fa","user":{"login":"LearnITGirl","id":12392143,"avatar_url":"https://avatars.githubusercontent.com/u/12392143?v=3","gravatar_id":"","url":"https://api.github.com/users/LearnITGirl","html_url":"https://github.com/LearnITGirl","followers_url":"https://api.github.com/users/LearnITGirl/followers","following_url":"https://api.github.com/users/LearnITGirl/following{/other_user}","gists_url":"https://api.github.com/users/LearnITGirl/gists{/gist_id}","starred_url":"https://api.github.com/users/LearnITGirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LearnITGirl/subscriptions","organizations_url":"https://api.github.com/users/LearnITGirl/orgs","repos_url":"https://api.github.com/users/LearnITGirl/repos","events_url":"https://api.github.com/users/LearnITGirl/events{/privacy}","received_events_url":"https://api.github.com/users/LearnITGirl/received_events","type":"Organization","site_admin":false},"repo":{"id":39104021,"name":"WebPlatform","full_name":"LearnITGirl/WebPlatform","owner":{"login":"LearnITGirl","id":12392143,"avatar_url":"https://avatars.githubusercontent.com/u/12392143?v=3","gravatar_id":"","url":"https://api.github.com/users/LearnITGirl","html_url":"https://github.com/LearnITGirl","followers_url":"https://api.github.com/users/LearnITGirl/followers","following_url":"https://api.github.com/users/LearnITGirl/following{/other_user}","gists_url":"https://api.github.com/users/LearnITGirl/gists{/gist_id}","starred_url":"https://api.github.com/users/LearnITGirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LearnITGirl/subscriptions","organizations_url":"https://api.github.com/users/LearnITGirl/orgs","repos_url":"https://api.github.com/users/LearnITGirl/repos","events_url":"https://api.github.com/users/LearnITGirl/events{/privacy}","received_events_url":"https://api.github.com/users/LearnITGirl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LearnITGirl/WebPlatform","description":" Web platform for the \"Learn IT, Girl\" program https://sites.google.com/site/learnitgirl/","fork":false,"url":"https://api.github.com/repos/LearnITGirl/WebPlatform","forks_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/forks","keys_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/teams","hooks_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/hooks","issue_events_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/events{/number}","events_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/events","assignees_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/assignees{/user}","branches_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/branches{/branch}","tags_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/tags","blobs_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/git/refs{/sha}","trees_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/statuses/{sha}","languages_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/languages","stargazers_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/stargazers","contributors_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/contributors","subscribers_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/subscribers","subscription_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/subscription","commits_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/commits{/sha}","git_commits_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/git/commits{/sha}","comments_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/comments{/number}","issue_comment_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/comments{/number}","contents_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/contents/{+path}","compare_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/merges","archive_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/downloads","issues_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues{/number}","pulls_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls{/number}","milestones_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/milestones{/number}","notifications_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/labels{/name}","releases_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/releases{/id}","created_at":"2015-07-14T22:39:34Z","updated_at":"2015-09-14T08:46:53Z","pushed_at":"2015-09-27T13:35:35Z","git_url":"git://github.com/LearnITGirl/WebPlatform.git","ssh_url":"git@github.com:LearnITGirl/WebPlatform.git","clone_url":"https://github.com/LearnITGirl/WebPlatform.git","svn_url":"https://github.com/LearnITGirl/WebPlatform","homepage":"","size":5100,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"LearnITGirl:master","ref":"master","sha":"acb3bead82b63edfb31a2f14fdc0073bcd41615a","user":{"login":"LearnITGirl","id":12392143,"avatar_url":"https://avatars.githubusercontent.com/u/12392143?v=3","gravatar_id":"","url":"https://api.github.com/users/LearnITGirl","html_url":"https://github.com/LearnITGirl","followers_url":"https://api.github.com/users/LearnITGirl/followers","following_url":"https://api.github.com/users/LearnITGirl/following{/other_user}","gists_url":"https://api.github.com/users/LearnITGirl/gists{/gist_id}","starred_url":"https://api.github.com/users/LearnITGirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LearnITGirl/subscriptions","organizations_url":"https://api.github.com/users/LearnITGirl/orgs","repos_url":"https://api.github.com/users/LearnITGirl/repos","events_url":"https://api.github.com/users/LearnITGirl/events{/privacy}","received_events_url":"https://api.github.com/users/LearnITGirl/received_events","type":"Organization","site_admin":false},"repo":{"id":39104021,"name":"WebPlatform","full_name":"LearnITGirl/WebPlatform","owner":{"login":"LearnITGirl","id":12392143,"avatar_url":"https://avatars.githubusercontent.com/u/12392143?v=3","gravatar_id":"","url":"https://api.github.com/users/LearnITGirl","html_url":"https://github.com/LearnITGirl","followers_url":"https://api.github.com/users/LearnITGirl/followers","following_url":"https://api.github.com/users/LearnITGirl/following{/other_user}","gists_url":"https://api.github.com/users/LearnITGirl/gists{/gist_id}","starred_url":"https://api.github.com/users/LearnITGirl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LearnITGirl/subscriptions","organizations_url":"https://api.github.com/users/LearnITGirl/orgs","repos_url":"https://api.github.com/users/LearnITGirl/repos","events_url":"https://api.github.com/users/LearnITGirl/events{/privacy}","received_events_url":"https://api.github.com/users/LearnITGirl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LearnITGirl/WebPlatform","description":" Web platform for the \"Learn IT, Girl\" program https://sites.google.com/site/learnitgirl/","fork":false,"url":"https://api.github.com/repos/LearnITGirl/WebPlatform","forks_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/forks","keys_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/teams","hooks_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/hooks","issue_events_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/events{/number}","events_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/events","assignees_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/assignees{/user}","branches_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/branches{/branch}","tags_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/tags","blobs_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/git/refs{/sha}","trees_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/statuses/{sha}","languages_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/languages","stargazers_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/stargazers","contributors_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/contributors","subscribers_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/subscribers","subscription_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/subscription","commits_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/commits{/sha}","git_commits_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/git/commits{/sha}","comments_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/comments{/number}","issue_comment_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/comments{/number}","contents_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/contents/{+path}","compare_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/merges","archive_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/downloads","issues_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues{/number}","pulls_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls{/number}","milestones_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/milestones{/number}","notifications_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/labels{/name}","releases_url":"https://api.github.com/repos/LearnITGirl/WebPlatform/releases{/id}","created_at":"2015-07-14T22:39:34Z","updated_at":"2015-09-14T08:46:53Z","pushed_at":"2015-09-27T13:35:35Z","git_url":"git://github.com/LearnITGirl/WebPlatform.git","ssh_url":"git@github.com:LearnITGirl/WebPlatform.git","clone_url":"https://github.com/LearnITGirl/WebPlatform.git","svn_url":"https://github.com/LearnITGirl/WebPlatform","homepage":"","size":5100,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/6"},"html":{"href":"https://github.com/LearnITGirl/WebPlatform/pull/6"},"issue":{"href":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/6"},"comments":{"href":"https://api.github.com/repos/LearnITGirl/WebPlatform/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LearnITGirl/WebPlatform/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/LearnITGirl/WebPlatform/statuses/0f188971406a6aa66e74394c4e9094d7fb57f1fa"}}}}