{"action":"created","comment":{"url":"https://api.github.com/repos/sichacvah/flashcards/pulls/comments/25151786","id":25151786,"diff_hunk":"@@ -1,5 +1,44 @@\n class CardsController < ApplicationController\n+  before_action :set_card, only: [:show, :edit, :update, :destroy]\n+\n+  def show\n+  end\n+\n   def index\n     @cards = Card.all\n   end\n+\n+  def new\n+    @card = Card.new\n+  end\n+\n+  def create\n+    @card = Card.new(card_params)\n+    if @card.save\n+      redirect_to @card, notice: \"Book was successfully created.\"","path":"app/controllers/cards_controller.rb","position":18,"original_position":18,"commit_id":"abba68d9afae3c83a02a62debec8543539fbff49","original_commit_id":"abba68d9afae3c83a02a62debec8543539fbff49","user":{"login":"Fodoj","id":78866,"avatar_url":"https://avatars.githubusercontent.com/u/78866?v=3","gravatar_id":"","url":"https://api.github.com/users/Fodoj","html_url":"https://github.com/Fodoj","followers_url":"https://api.github.com/users/Fodoj/followers","following_url":"https://api.github.com/users/Fodoj/following{/other_user}","gists_url":"https://api.github.com/users/Fodoj/gists{/gist_id}","starred_url":"https://api.github.com/users/Fodoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fodoj/subscriptions","organizations_url":"https://api.github.com/users/Fodoj/orgs","repos_url":"https://api.github.com/users/Fodoj/repos","events_url":"https://api.github.com/users/Fodoj/events{/privacy}","received_events_url":"https://api.github.com/users/Fodoj/received_events","type":"User","site_admin":false},"body":"Book was successfully created.? запахло копипастой","created_at":"2015-02-23T09:38:20Z","updated_at":"2015-02-23T09:38:20Z","html_url":"https://github.com/sichacvah/flashcards/pull/3#discussion_r25151786","pull_request_url":"https://api.github.com/repos/sichacvah/flashcards/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/sichacvah/flashcards/pulls/comments/25151786"},"html":{"href":"https://github.com/sichacvah/flashcards/pull/3#discussion_r25151786"},"pull_request":{"href":"https://api.github.com/repos/sichacvah/flashcards/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/sichacvah/flashcards/pulls/3","id":29773088,"html_url":"https://github.com/sichacvah/flashcards/pull/3","diff_url":"https://github.com/sichacvah/flashcards/pull/3.diff","patch_url":"https://github.com/sichacvah/flashcards/pull/3.patch","issue_url":"https://api.github.com/repos/sichacvah/flashcards/issues/3","number":3,"state":"open","locked":false,"title":"third task","user":{"login":"sichacvah","id":6375582,"avatar_url":"https://avatars.githubusercontent.com/u/6375582?v=3","gravatar_id":"","url":"https://api.github.com/users/sichacvah","html_url":"https://github.com/sichacvah","followers_url":"https://api.github.com/users/sichacvah/followers","following_url":"https://api.github.com/users/sichacvah/following{/other_user}","gists_url":"https://api.github.com/users/sichacvah/gists{/gist_id}","starred_url":"https://api.github.com/users/sichacvah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sichacvah/subscriptions","organizations_url":"https://api.github.com/users/sichacvah/orgs","repos_url":"https://api.github.com/users/sichacvah/repos","events_url":"https://api.github.com/users/sichacvah/events{/privacy}","received_events_url":"https://api.github.com/users/sichacvah/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-22T16:59:35Z","updated_at":"2015-02-23T09:38:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa4605727375bee8bc2b2b3c7a8c07db991cafab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sichacvah/flashcards/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sichacvah/flashcards/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sichacvah/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sichacvah/flashcards/issues/3/comments","statuses_url":"https://api.github.com/repos/sichacvah/flashcards/statuses/abba68d9afae3c83a02a62debec8543539fbff49","head":{"label":"sichacvah:third_task","ref":"third_task","sha":"abba68d9afae3c83a02a62debec8543539fbff49","user":{"login":"sichacvah","id":6375582,"avatar_url":"https://avatars.githubusercontent.com/u/6375582?v=3","gravatar_id":"","url":"https://api.github.com/users/sichacvah","html_url":"https://github.com/sichacvah","followers_url":"https://api.github.com/users/sichacvah/followers","following_url":"https://api.github.com/users/sichacvah/following{/other_user}","gists_url":"https://api.github.com/users/sichacvah/gists{/gist_id}","starred_url":"https://api.github.com/users/sichacvah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sichacvah/subscriptions","organizations_url":"https://api.github.com/users/sichacvah/orgs","repos_url":"https://api.github.com/users/sichacvah/repos","events_url":"https://api.github.com/users/sichacvah/events{/privacy}","received_events_url":"https://api.github.com/users/sichacvah/received_events","type":"User","site_admin":false},"repo":{"id":31115461,"name":"flashcards","full_name":"sichacvah/flashcards","owner":{"login":"sichacvah","id":6375582,"avatar_url":"https://avatars.githubusercontent.com/u/6375582?v=3","gravatar_id":"","url":"https://api.github.com/users/sichacvah","html_url":"https://github.com/sichacvah","followers_url":"https://api.github.com/users/sichacvah/followers","following_url":"https://api.github.com/users/sichacvah/following{/other_user}","gists_url":"https://api.github.com/users/sichacvah/gists{/gist_id}","starred_url":"https://api.github.com/users/sichacvah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sichacvah/subscriptions","organizations_url":"https://api.github.com/users/sichacvah/orgs","repos_url":"https://api.github.com/users/sichacvah/repos","events_url":"https://api.github.com/users/sichacvah/events{/privacy}","received_events_url":"https://api.github.com/users/sichacvah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sichacvah/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/sichacvah/flashcards","forks_url":"https://api.github.com/repos/sichacvah/flashcards/forks","keys_url":"https://api.github.com/repos/sichacvah/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sichacvah/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sichacvah/flashcards/teams","hooks_url":"https://api.github.com/repos/sichacvah/flashcards/hooks","issue_events_url":"https://api.github.com/repos/sichacvah/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/sichacvah/flashcards/events","assignees_url":"https://api.github.com/repos/sichacvah/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/sichacvah/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/sichacvah/flashcards/tags","blobs_url":"https://api.github.com/repos/sichacvah/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sichacvah/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sichacvah/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/sichacvah/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sichacvah/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/sichacvah/flashcards/languages","stargazers_url":"https://api.github.com/repos/sichacvah/flashcards/stargazers","contributors_url":"https://api.github.com/repos/sichacvah/flashcards/contributors","subscribers_url":"https://api.github.com/repos/sichacvah/flashcards/subscribers","subscription_url":"https://api.github.com/repos/sichacvah/flashcards/subscription","commits_url":"https://api.github.com/repos/sichacvah/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/sichacvah/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/sichacvah/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/sichacvah/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/sichacvah/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/sichacvah/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sichacvah/flashcards/merges","archive_url":"https://api.github.com/repos/sichacvah/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sichacvah/flashcards/downloads","issues_url":"https://api.github.com/repos/sichacvah/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/sichacvah/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/sichacvah/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/sichacvah/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sichacvah/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/sichacvah/flashcards/releases{/id}","created_at":"2015-02-21T04:39:19Z","updated_at":"2015-02-22T12:59:57Z","pushed_at":"2015-02-23T03:46:44Z","git_url":"git://github.com/sichacvah/flashcards.git","ssh_url":"git@github.com:sichacvah/flashcards.git","clone_url":"https://github.com/sichacvah/flashcards.git","svn_url":"https://github.com/sichacvah/flashcards","homepage":null,"size":332,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sichacvah:master","ref":"master","sha":"d3230e7d0e724da0d386e852fcc57fca29cfd37c","user":{"login":"sichacvah","id":6375582,"avatar_url":"https://avatars.githubusercontent.com/u/6375582?v=3","gravatar_id":"","url":"https://api.github.com/users/sichacvah","html_url":"https://github.com/sichacvah","followers_url":"https://api.github.com/users/sichacvah/followers","following_url":"https://api.github.com/users/sichacvah/following{/other_user}","gists_url":"https://api.github.com/users/sichacvah/gists{/gist_id}","starred_url":"https://api.github.com/users/sichacvah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sichacvah/subscriptions","organizations_url":"https://api.github.com/users/sichacvah/orgs","repos_url":"https://api.github.com/users/sichacvah/repos","events_url":"https://api.github.com/users/sichacvah/events{/privacy}","received_events_url":"https://api.github.com/users/sichacvah/received_events","type":"User","site_admin":false},"repo":{"id":31115461,"name":"flashcards","full_name":"sichacvah/flashcards","owner":{"login":"sichacvah","id":6375582,"avatar_url":"https://avatars.githubusercontent.com/u/6375582?v=3","gravatar_id":"","url":"https://api.github.com/users/sichacvah","html_url":"https://github.com/sichacvah","followers_url":"https://api.github.com/users/sichacvah/followers","following_url":"https://api.github.com/users/sichacvah/following{/other_user}","gists_url":"https://api.github.com/users/sichacvah/gists{/gist_id}","starred_url":"https://api.github.com/users/sichacvah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sichacvah/subscriptions","organizations_url":"https://api.github.com/users/sichacvah/orgs","repos_url":"https://api.github.com/users/sichacvah/repos","events_url":"https://api.github.com/users/sichacvah/events{/privacy}","received_events_url":"https://api.github.com/users/sichacvah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sichacvah/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/sichacvah/flashcards","forks_url":"https://api.github.com/repos/sichacvah/flashcards/forks","keys_url":"https://api.github.com/repos/sichacvah/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sichacvah/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sichacvah/flashcards/teams","hooks_url":"https://api.github.com/repos/sichacvah/flashcards/hooks","issue_events_url":"https://api.github.com/repos/sichacvah/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/sichacvah/flashcards/events","assignees_url":"https://api.github.com/repos/sichacvah/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/sichacvah/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/sichacvah/flashcards/tags","blobs_url":"https://api.github.com/repos/sichacvah/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sichacvah/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sichacvah/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/sichacvah/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sichacvah/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/sichacvah/flashcards/languages","stargazers_url":"https://api.github.com/repos/sichacvah/flashcards/stargazers","contributors_url":"https://api.github.com/repos/sichacvah/flashcards/contributors","subscribers_url":"https://api.github.com/repos/sichacvah/flashcards/subscribers","subscription_url":"https://api.github.com/repos/sichacvah/flashcards/subscription","commits_url":"https://api.github.com/repos/sichacvah/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/sichacvah/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/sichacvah/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/sichacvah/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/sichacvah/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/sichacvah/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sichacvah/flashcards/merges","archive_url":"https://api.github.com/repos/sichacvah/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sichacvah/flashcards/downloads","issues_url":"https://api.github.com/repos/sichacvah/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/sichacvah/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/sichacvah/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/sichacvah/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sichacvah/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/sichacvah/flashcards/releases{/id}","created_at":"2015-02-21T04:39:19Z","updated_at":"2015-02-22T12:59:57Z","pushed_at":"2015-02-23T03:46:44Z","git_url":"git://github.com/sichacvah/flashcards.git","ssh_url":"git@github.com:sichacvah/flashcards.git","clone_url":"https://github.com/sichacvah/flashcards.git","svn_url":"https://github.com/sichacvah/flashcards","homepage":null,"size":332,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sichacvah/flashcards/pulls/3"},"html":{"href":"https://github.com/sichacvah/flashcards/pull/3"},"issue":{"href":"https://api.github.com/repos/sichacvah/flashcards/issues/3"},"comments":{"href":"https://api.github.com/repos/sichacvah/flashcards/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sichacvah/flashcards/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sichacvah/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sichacvah/flashcards/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sichacvah/flashcards/statuses/abba68d9afae3c83a02a62debec8543539fbff49"}}}}