{"action":"created","comment":{"url":"https://api.github.com/repos/ermolushka/flashcards/pulls/comments/24842753","id":24842753,"diff_hunk":"@@ -4,15 +4,47 @@ def index\n \t  @cards = Card.all\n \tend\n \n+\tdef new\n+\t\t@card = Card.new\n+\tend\n+\n \tdef show\n+\t\t@card = Card.find(params[:id])\n \tend\n \n \tdef create\n+\t\t@card = Card.new(card_params)\n+\n+\t\tif @card.save\n+\t\t\tredirect_to @card\n+\t\telse\n+\t\t\trender 'new'\n+\t\tend\n+\tend\n+\n+\tdef edit\n+\t\t@card = Card.find(params[:id])","path":"app/controllers/cards_controller.rb","position":23,"original_position":23,"commit_id":"174cb49b43cfafe00fb62c59144b05fdb52c37bb","original_commit_id":"174cb49b43cfafe00fb62c59144b05fdb52c37bb","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Use 2 (not 1) spaces for indentation.<br>Tab detected.","created_at":"2015-02-17T18:59:44Z","updated_at":"2015-02-17T18:59:44Z","html_url":"https://github.com/ermolushka/flashcards/pull/4#discussion_r24842753","pull_request_url":"https://api.github.com/repos/ermolushka/flashcards/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/ermolushka/flashcards/pulls/comments/24842753"},"html":{"href":"https://github.com/ermolushka/flashcards/pull/4#discussion_r24842753"},"pull_request":{"href":"https://api.github.com/repos/ermolushka/flashcards/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/ermolushka/flashcards/pulls/4","id":29467829,"html_url":"https://github.com/ermolushka/flashcards/pull/4","diff_url":"https://github.com/ermolushka/flashcards/pull/4.diff","patch_url":"https://github.com/ermolushka/flashcards/pull/4.patch","issue_url":"https://api.github.com/repos/ermolushka/flashcards/issues/4","number":4,"state":"open","locked":false,"title":"CRUD cards","user":{"login":"ermolushka","id":2204660,"avatar_url":"https://avatars.githubusercontent.com/u/2204660?v=3","gravatar_id":"","url":"https://api.github.com/users/ermolushka","html_url":"https://github.com/ermolushka","followers_url":"https://api.github.com/users/ermolushka/followers","following_url":"https://api.github.com/users/ermolushka/following{/other_user}","gists_url":"https://api.github.com/users/ermolushka/gists{/gist_id}","starred_url":"https://api.github.com/users/ermolushka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ermolushka/subscriptions","organizations_url":"https://api.github.com/users/ermolushka/orgs","repos_url":"https://api.github.com/users/ermolushka/repos","events_url":"https://api.github.com/users/ermolushka/events{/privacy}","received_events_url":"https://api.github.com/users/ermolushka/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-17T18:59:37Z","updated_at":"2015-02-17T18:59:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b19eb4287708e9bfb85b0d42eecd09829062e141","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ermolushka/flashcards/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ermolushka/flashcards/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ermolushka/flashcards/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ermolushka/flashcards/issues/4/comments","statuses_url":"https://api.github.com/repos/ermolushka/flashcards/statuses/174cb49b43cfafe00fb62c59144b05fdb52c37bb","head":{"label":"ermolushka:third-task","ref":"third-task","sha":"174cb49b43cfafe00fb62c59144b05fdb52c37bb","user":{"login":"ermolushka","id":2204660,"avatar_url":"https://avatars.githubusercontent.com/u/2204660?v=3","gravatar_id":"","url":"https://api.github.com/users/ermolushka","html_url":"https://github.com/ermolushka","followers_url":"https://api.github.com/users/ermolushka/followers","following_url":"https://api.github.com/users/ermolushka/following{/other_user}","gists_url":"https://api.github.com/users/ermolushka/gists{/gist_id}","starred_url":"https://api.github.com/users/ermolushka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ermolushka/subscriptions","organizations_url":"https://api.github.com/users/ermolushka/orgs","repos_url":"https://api.github.com/users/ermolushka/repos","events_url":"https://api.github.com/users/ermolushka/events{/privacy}","received_events_url":"https://api.github.com/users/ermolushka/received_events","type":"User","site_admin":false},"repo":{"id":30872002,"name":"flashcards","full_name":"ermolushka/flashcards","owner":{"login":"ermolushka","id":2204660,"avatar_url":"https://avatars.githubusercontent.com/u/2204660?v=3","gravatar_id":"","url":"https://api.github.com/users/ermolushka","html_url":"https://github.com/ermolushka","followers_url":"https://api.github.com/users/ermolushka/followers","following_url":"https://api.github.com/users/ermolushka/following{/other_user}","gists_url":"https://api.github.com/users/ermolushka/gists{/gist_id}","starred_url":"https://api.github.com/users/ermolushka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ermolushka/subscriptions","organizations_url":"https://api.github.com/users/ermolushka/orgs","repos_url":"https://api.github.com/users/ermolushka/repos","events_url":"https://api.github.com/users/ermolushka/events{/privacy}","received_events_url":"https://api.github.com/users/ermolushka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ermolushka/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/ermolushka/flashcards","forks_url":"https://api.github.com/repos/ermolushka/flashcards/forks","keys_url":"https://api.github.com/repos/ermolushka/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ermolushka/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ermolushka/flashcards/teams","hooks_url":"https://api.github.com/repos/ermolushka/flashcards/hooks","issue_events_url":"https://api.github.com/repos/ermolushka/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/ermolushka/flashcards/events","assignees_url":"https://api.github.com/repos/ermolushka/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/ermolushka/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/ermolushka/flashcards/tags","blobs_url":"https://api.github.com/repos/ermolushka/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ermolushka/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ermolushka/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ermolushka/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ermolushka/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/ermolushka/flashcards/languages","stargazers_url":"https://api.github.com/repos/ermolushka/flashcards/stargazers","contributors_url":"https://api.github.com/repos/ermolushka/flashcards/contributors","subscribers_url":"https://api.github.com/repos/ermolushka/flashcards/subscribers","subscription_url":"https://api.github.com/repos/ermolushka/flashcards/subscription","commits_url":"https://api.github.com/repos/ermolushka/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ermolushka/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ermolushka/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ermolushka/flashcards/issues/comments/{number}","contents_url":"https://api.github.com/repos/ermolushka/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/ermolushka/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ermolushka/flashcards/merges","archive_url":"https://api.github.com/repos/ermolushka/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ermolushka/flashcards/downloads","issues_url":"https://api.github.com/repos/ermolushka/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/ermolushka/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/ermolushka/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/ermolushka/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ermolushka/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/ermolushka/flashcards/releases{/id}","created_at":"2015-02-16T14:35:15Z","updated_at":"2015-02-17T07:48:51Z","pushed_at":"2015-02-17T18:49:23Z","git_url":"git://github.com/ermolushka/flashcards.git","ssh_url":"git@github.com:ermolushka/flashcards.git","clone_url":"https://github.com/ermolushka/flashcards.git","svn_url":"https://github.com/ermolushka/flashcards","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ermolushka:master","ref":"master","sha":"ff12c507089280e9f735f739ec9b13c8dd562831","user":{"login":"ermolushka","id":2204660,"avatar_url":"https://avatars.githubusercontent.com/u/2204660?v=3","gravatar_id":"","url":"https://api.github.com/users/ermolushka","html_url":"https://github.com/ermolushka","followers_url":"https://api.github.com/users/ermolushka/followers","following_url":"https://api.github.com/users/ermolushka/following{/other_user}","gists_url":"https://api.github.com/users/ermolushka/gists{/gist_id}","starred_url":"https://api.github.com/users/ermolushka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ermolushka/subscriptions","organizations_url":"https://api.github.com/users/ermolushka/orgs","repos_url":"https://api.github.com/users/ermolushka/repos","events_url":"https://api.github.com/users/ermolushka/events{/privacy}","received_events_url":"https://api.github.com/users/ermolushka/received_events","type":"User","site_admin":false},"repo":{"id":30872002,"name":"flashcards","full_name":"ermolushka/flashcards","owner":{"login":"ermolushka","id":2204660,"avatar_url":"https://avatars.githubusercontent.com/u/2204660?v=3","gravatar_id":"","url":"https://api.github.com/users/ermolushka","html_url":"https://github.com/ermolushka","followers_url":"https://api.github.com/users/ermolushka/followers","following_url":"https://api.github.com/users/ermolushka/following{/other_user}","gists_url":"https://api.github.com/users/ermolushka/gists{/gist_id}","starred_url":"https://api.github.com/users/ermolushka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ermolushka/subscriptions","organizations_url":"https://api.github.com/users/ermolushka/orgs","repos_url":"https://api.github.com/users/ermolushka/repos","events_url":"https://api.github.com/users/ermolushka/events{/privacy}","received_events_url":"https://api.github.com/users/ermolushka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ermolushka/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/ermolushka/flashcards","forks_url":"https://api.github.com/repos/ermolushka/flashcards/forks","keys_url":"https://api.github.com/repos/ermolushka/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ermolushka/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ermolushka/flashcards/teams","hooks_url":"https://api.github.com/repos/ermolushka/flashcards/hooks","issue_events_url":"https://api.github.com/repos/ermolushka/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/ermolushka/flashcards/events","assignees_url":"https://api.github.com/repos/ermolushka/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/ermolushka/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/ermolushka/flashcards/tags","blobs_url":"https://api.github.com/repos/ermolushka/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ermolushka/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ermolushka/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ermolushka/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ermolushka/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/ermolushka/flashcards/languages","stargazers_url":"https://api.github.com/repos/ermolushka/flashcards/stargazers","contributors_url":"https://api.github.com/repos/ermolushka/flashcards/contributors","subscribers_url":"https://api.github.com/repos/ermolushka/flashcards/subscribers","subscription_url":"https://api.github.com/repos/ermolushka/flashcards/subscription","commits_url":"https://api.github.com/repos/ermolushka/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ermolushka/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ermolushka/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ermolushka/flashcards/issues/comments/{number}","contents_url":"https://api.github.com/repos/ermolushka/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/ermolushka/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ermolushka/flashcards/merges","archive_url":"https://api.github.com/repos/ermolushka/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ermolushka/flashcards/downloads","issues_url":"https://api.github.com/repos/ermolushka/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/ermolushka/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/ermolushka/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/ermolushka/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ermolushka/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/ermolushka/flashcards/releases{/id}","created_at":"2015-02-16T14:35:15Z","updated_at":"2015-02-17T07:48:51Z","pushed_at":"2015-02-17T18:49:23Z","git_url":"git://github.com/ermolushka/flashcards.git","ssh_url":"git@github.com:ermolushka/flashcards.git","clone_url":"https://github.com/ermolushka/flashcards.git","svn_url":"https://github.com/ermolushka/flashcards","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ermolushka/flashcards/pulls/4"},"html":{"href":"https://github.com/ermolushka/flashcards/pull/4"},"issue":{"href":"https://api.github.com/repos/ermolushka/flashcards/issues/4"},"comments":{"href":"https://api.github.com/repos/ermolushka/flashcards/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ermolushka/flashcards/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ermolushka/flashcards/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ermolushka/flashcards/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ermolushka/flashcards/statuses/174cb49b43cfafe00fb62c59144b05fdb52c37bb"}}}}