{"action":"created","comment":{"url":"https://api.github.com/repos/FelAl/flashcards/pulls/comments/31872447","id":31872447,"diff_hunk":"@@ -0,0 +1,14 @@\n+class CardsController < ApplicationController\n+\n+  def index\n+    @cards = Card.all\n+  end\n+\n+  def create\n+    a = Card.new\n+    a['original_text']        = params['original_text']\n+    a['translated_text'] = params['translated_text']","path":"app/controllers/cards_controller.rb","position":10,"original_position":10,"commit_id":"a9f6750f70b139a827eced3dad319d91b65ba154","original_commit_id":"a9f6750f70b139a827eced3dad319d91b65ba154","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-06-06T23:45:20Z","updated_at":"2015-06-06T23:45:20Z","html_url":"https://github.com/FelAl/flashcards/pull/2#discussion_r31872447","pull_request_url":"https://api.github.com/repos/FelAl/flashcards/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/FelAl/flashcards/pulls/comments/31872447"},"html":{"href":"https://github.com/FelAl/flashcards/pull/2#discussion_r31872447"},"pull_request":{"href":"https://api.github.com/repos/FelAl/flashcards/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/FelAl/flashcards/pulls/2","id":37098669,"html_url":"https://github.com/FelAl/flashcards/pull/2","diff_url":"https://github.com/FelAl/flashcards/pull/2.diff","patch_url":"https://github.com/FelAl/flashcards/pull/2.patch","issue_url":"https://api.github.com/repos/FelAl/flashcards/issues/2","number":2,"state":"open","locked":false,"title":"Main task completed","user":{"login":"FelAl","id":4502817,"avatar_url":"https://avatars.githubusercontent.com/u/4502817?v=3","gravatar_id":"","url":"https://api.github.com/users/FelAl","html_url":"https://github.com/FelAl","followers_url":"https://api.github.com/users/FelAl/followers","following_url":"https://api.github.com/users/FelAl/following{/other_user}","gists_url":"https://api.github.com/users/FelAl/gists{/gist_id}","starred_url":"https://api.github.com/users/FelAl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelAl/subscriptions","organizations_url":"https://api.github.com/users/FelAl/orgs","repos_url":"https://api.github.com/users/FelAl/repos","events_url":"https://api.github.com/users/FelAl/events{/privacy}","received_events_url":"https://api.github.com/users/FelAl/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-06T23:45:11Z","updated_at":"2015-06-06T23:45:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f38896b8170f666fb98ee9a6ea53c9b481afb7c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FelAl/flashcards/pulls/2/commits","review_comments_url":"https://api.github.com/repos/FelAl/flashcards/pulls/2/comments","review_comment_url":"https://api.github.com/repos/FelAl/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FelAl/flashcards/issues/2/comments","statuses_url":"https://api.github.com/repos/FelAl/flashcards/statuses/a9f6750f70b139a827eced3dad319d91b65ba154","head":{"label":"FelAl:second_task","ref":"second_task","sha":"a9f6750f70b139a827eced3dad319d91b65ba154","user":{"login":"FelAl","id":4502817,"avatar_url":"https://avatars.githubusercontent.com/u/4502817?v=3","gravatar_id":"","url":"https://api.github.com/users/FelAl","html_url":"https://github.com/FelAl","followers_url":"https://api.github.com/users/FelAl/followers","following_url":"https://api.github.com/users/FelAl/following{/other_user}","gists_url":"https://api.github.com/users/FelAl/gists{/gist_id}","starred_url":"https://api.github.com/users/FelAl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelAl/subscriptions","organizations_url":"https://api.github.com/users/FelAl/orgs","repos_url":"https://api.github.com/users/FelAl/repos","events_url":"https://api.github.com/users/FelAl/events{/privacy}","received_events_url":"https://api.github.com/users/FelAl/received_events","type":"User","site_admin":false},"repo":{"id":36934417,"name":"flashcards","full_name":"FelAl/flashcards","owner":{"login":"FelAl","id":4502817,"avatar_url":"https://avatars.githubusercontent.com/u/4502817?v=3","gravatar_id":"","url":"https://api.github.com/users/FelAl","html_url":"https://github.com/FelAl","followers_url":"https://api.github.com/users/FelAl/followers","following_url":"https://api.github.com/users/FelAl/following{/other_user}","gists_url":"https://api.github.com/users/FelAl/gists{/gist_id}","starred_url":"https://api.github.com/users/FelAl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelAl/subscriptions","organizations_url":"https://api.github.com/users/FelAl/orgs","repos_url":"https://api.github.com/users/FelAl/repos","events_url":"https://api.github.com/users/FelAl/events{/privacy}","received_events_url":"https://api.github.com/users/FelAl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FelAl/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/FelAl/flashcards","forks_url":"https://api.github.com/repos/FelAl/flashcards/forks","keys_url":"https://api.github.com/repos/FelAl/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FelAl/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FelAl/flashcards/teams","hooks_url":"https://api.github.com/repos/FelAl/flashcards/hooks","issue_events_url":"https://api.github.com/repos/FelAl/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/FelAl/flashcards/events","assignees_url":"https://api.github.com/repos/FelAl/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/FelAl/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/FelAl/flashcards/tags","blobs_url":"https://api.github.com/repos/FelAl/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FelAl/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FelAl/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/FelAl/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FelAl/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/FelAl/flashcards/languages","stargazers_url":"https://api.github.com/repos/FelAl/flashcards/stargazers","contributors_url":"https://api.github.com/repos/FelAl/flashcards/contributors","subscribers_url":"https://api.github.com/repos/FelAl/flashcards/subscribers","subscription_url":"https://api.github.com/repos/FelAl/flashcards/subscription","commits_url":"https://api.github.com/repos/FelAl/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/FelAl/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/FelAl/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/FelAl/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/FelAl/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/FelAl/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FelAl/flashcards/merges","archive_url":"https://api.github.com/repos/FelAl/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FelAl/flashcards/downloads","issues_url":"https://api.github.com/repos/FelAl/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/FelAl/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/FelAl/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/FelAl/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FelAl/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/FelAl/flashcards/releases{/id}","created_at":"2015-06-05T13:34:30Z","updated_at":"2015-06-05T13:36:00Z","pushed_at":"2015-06-06T23:45:12Z","git_url":"git://github.com/FelAl/flashcards.git","ssh_url":"git@github.com:FelAl/flashcards.git","clone_url":"https://github.com/FelAl/flashcards.git","svn_url":"https://github.com/FelAl/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":"FelAl:master","ref":"master","sha":"9b58cb843c035c1dc4e73432f20ff7233784d32a","user":{"login":"FelAl","id":4502817,"avatar_url":"https://avatars.githubusercontent.com/u/4502817?v=3","gravatar_id":"","url":"https://api.github.com/users/FelAl","html_url":"https://github.com/FelAl","followers_url":"https://api.github.com/users/FelAl/followers","following_url":"https://api.github.com/users/FelAl/following{/other_user}","gists_url":"https://api.github.com/users/FelAl/gists{/gist_id}","starred_url":"https://api.github.com/users/FelAl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelAl/subscriptions","organizations_url":"https://api.github.com/users/FelAl/orgs","repos_url":"https://api.github.com/users/FelAl/repos","events_url":"https://api.github.com/users/FelAl/events{/privacy}","received_events_url":"https://api.github.com/users/FelAl/received_events","type":"User","site_admin":false},"repo":{"id":36934417,"name":"flashcards","full_name":"FelAl/flashcards","owner":{"login":"FelAl","id":4502817,"avatar_url":"https://avatars.githubusercontent.com/u/4502817?v=3","gravatar_id":"","url":"https://api.github.com/users/FelAl","html_url":"https://github.com/FelAl","followers_url":"https://api.github.com/users/FelAl/followers","following_url":"https://api.github.com/users/FelAl/following{/other_user}","gists_url":"https://api.github.com/users/FelAl/gists{/gist_id}","starred_url":"https://api.github.com/users/FelAl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FelAl/subscriptions","organizations_url":"https://api.github.com/users/FelAl/orgs","repos_url":"https://api.github.com/users/FelAl/repos","events_url":"https://api.github.com/users/FelAl/events{/privacy}","received_events_url":"https://api.github.com/users/FelAl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FelAl/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/FelAl/flashcards","forks_url":"https://api.github.com/repos/FelAl/flashcards/forks","keys_url":"https://api.github.com/repos/FelAl/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FelAl/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FelAl/flashcards/teams","hooks_url":"https://api.github.com/repos/FelAl/flashcards/hooks","issue_events_url":"https://api.github.com/repos/FelAl/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/FelAl/flashcards/events","assignees_url":"https://api.github.com/repos/FelAl/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/FelAl/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/FelAl/flashcards/tags","blobs_url":"https://api.github.com/repos/FelAl/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FelAl/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FelAl/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/FelAl/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FelAl/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/FelAl/flashcards/languages","stargazers_url":"https://api.github.com/repos/FelAl/flashcards/stargazers","contributors_url":"https://api.github.com/repos/FelAl/flashcards/contributors","subscribers_url":"https://api.github.com/repos/FelAl/flashcards/subscribers","subscription_url":"https://api.github.com/repos/FelAl/flashcards/subscription","commits_url":"https://api.github.com/repos/FelAl/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/FelAl/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/FelAl/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/FelAl/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/FelAl/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/FelAl/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FelAl/flashcards/merges","archive_url":"https://api.github.com/repos/FelAl/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FelAl/flashcards/downloads","issues_url":"https://api.github.com/repos/FelAl/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/FelAl/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/FelAl/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/FelAl/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FelAl/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/FelAl/flashcards/releases{/id}","created_at":"2015-06-05T13:34:30Z","updated_at":"2015-06-05T13:36:00Z","pushed_at":"2015-06-06T23:45:12Z","git_url":"git://github.com/FelAl/flashcards.git","ssh_url":"git@github.com:FelAl/flashcards.git","clone_url":"https://github.com/FelAl/flashcards.git","svn_url":"https://github.com/FelAl/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/FelAl/flashcards/pulls/2"},"html":{"href":"https://github.com/FelAl/flashcards/pull/2"},"issue":{"href":"https://api.github.com/repos/FelAl/flashcards/issues/2"},"comments":{"href":"https://api.github.com/repos/FelAl/flashcards/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/FelAl/flashcards/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/FelAl/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FelAl/flashcards/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/FelAl/flashcards/statuses/a9f6750f70b139a827eced3dad319d91b65ba154"}}}}