{"action":"created","comment":{"url":"https://api.github.com/repos/Nikita8877/Flashcard/pulls/comments/28957898","id":28957898,"diff_hunk":"@@ -2,4 +2,47 @@ class CardsController < ApplicationController\n   def index\n     @cards = Card.all\n   end\n+\n+  def new\n+\t  @card = Card.new\n+  end\n+\n+  def edit\n+\t  @card = Card.find(params[:id])\n+  end\n+\n+  def show\n+    @card = Card.find(params[:id])\n+  end\n+\n+  def create\n+    @card = Card.create(card_params)\n+    respond_to do |format|\n+      if @card.save\n+        format.html {redirect_to card_path(@card)}\n+        format.json {render json: @card, status: :created, location: @card}\n+      else \n+        format.html { render action: \"new\"}\n+        format.json {render json: @card.errors, status: :unprocessable_entity}","path":"app/controllers/cards_controller.rb","position":25,"original_position":25,"commit_id":"d856a955061d185d5f499eaf28b85d51196c76ab","original_commit_id":"d856a955061d185d5f499eaf28b85d51196c76ab","user":{"login":"mkdev-mentor-1","id":11962702,"avatar_url":"https://avatars.githubusercontent.com/u/11962702?v=3","gravatar_id":"","url":"https://api.github.com/users/mkdev-mentor-1","html_url":"https://github.com/mkdev-mentor-1","followers_url":"https://api.github.com/users/mkdev-mentor-1/followers","following_url":"https://api.github.com/users/mkdev-mentor-1/following{/other_user}","gists_url":"https://api.github.com/users/mkdev-mentor-1/gists{/gist_id}","starred_url":"https://api.github.com/users/mkdev-mentor-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkdev-mentor-1/subscriptions","organizations_url":"https://api.github.com/users/mkdev-mentor-1/orgs","repos_url":"https://api.github.com/users/mkdev-mentor-1/repos","events_url":"https://api.github.com/users/mkdev-mentor-1/events{/privacy}","received_events_url":"https://api.github.com/users/mkdev-mentor-1/received_events","type":"User","site_admin":false},"body":"хаунд!!!","created_at":"2015-04-23T12:36:23Z","updated_at":"2015-04-23T12:36:23Z","html_url":"https://github.com/Nikita8877/Flashcard/pull/3#discussion_r28957898","pull_request_url":"https://api.github.com/repos/Nikita8877/Flashcard/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Nikita8877/Flashcard/pulls/comments/28957898"},"html":{"href":"https://github.com/Nikita8877/Flashcard/pull/3#discussion_r28957898"},"pull_request":{"href":"https://api.github.com/repos/Nikita8877/Flashcard/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Nikita8877/Flashcard/pulls/3","id":33945735,"html_url":"https://github.com/Nikita8877/Flashcard/pull/3","diff_url":"https://github.com/Nikita8877/Flashcard/pull/3.diff","patch_url":"https://github.com/Nikita8877/Flashcard/pull/3.patch","issue_url":"https://api.github.com/repos/Nikita8877/Flashcard/issues/3","number":3,"state":"open","locked":false,"title":"task 3","user":{"login":"Nikita8877","id":5137579,"avatar_url":"https://avatars.githubusercontent.com/u/5137579?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikita8877","html_url":"https://github.com/Nikita8877","followers_url":"https://api.github.com/users/Nikita8877/followers","following_url":"https://api.github.com/users/Nikita8877/following{/other_user}","gists_url":"https://api.github.com/users/Nikita8877/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikita8877/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikita8877/subscriptions","organizations_url":"https://api.github.com/users/Nikita8877/orgs","repos_url":"https://api.github.com/users/Nikita8877/repos","events_url":"https://api.github.com/users/Nikita8877/events{/privacy}","received_events_url":"https://api.github.com/users/Nikita8877/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-23T11:18:56Z","updated_at":"2015-04-23T12:36:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21df6b0ae42c31ffb44f99ac23b1cbcab0f69935","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Nikita8877/Flashcard/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Nikita8877/Flashcard/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Nikita8877/Flashcard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nikita8877/Flashcard/issues/3/comments","statuses_url":"https://api.github.com/repos/Nikita8877/Flashcard/statuses/d856a955061d185d5f499eaf28b85d51196c76ab","head":{"label":"Nikita8877:first-task","ref":"first-task","sha":"d856a955061d185d5f499eaf28b85d51196c76ab","user":{"login":"Nikita8877","id":5137579,"avatar_url":"https://avatars.githubusercontent.com/u/5137579?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikita8877","html_url":"https://github.com/Nikita8877","followers_url":"https://api.github.com/users/Nikita8877/followers","following_url":"https://api.github.com/users/Nikita8877/following{/other_user}","gists_url":"https://api.github.com/users/Nikita8877/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikita8877/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikita8877/subscriptions","organizations_url":"https://api.github.com/users/Nikita8877/orgs","repos_url":"https://api.github.com/users/Nikita8877/repos","events_url":"https://api.github.com/users/Nikita8877/events{/privacy}","received_events_url":"https://api.github.com/users/Nikita8877/received_events","type":"User","site_admin":false},"repo":{"id":34074133,"name":"Flashcard","full_name":"Nikita8877/Flashcard","owner":{"login":"Nikita8877","id":5137579,"avatar_url":"https://avatars.githubusercontent.com/u/5137579?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikita8877","html_url":"https://github.com/Nikita8877","followers_url":"https://api.github.com/users/Nikita8877/followers","following_url":"https://api.github.com/users/Nikita8877/following{/other_user}","gists_url":"https://api.github.com/users/Nikita8877/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikita8877/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikita8877/subscriptions","organizations_url":"https://api.github.com/users/Nikita8877/orgs","repos_url":"https://api.github.com/users/Nikita8877/repos","events_url":"https://api.github.com/users/Nikita8877/events{/privacy}","received_events_url":"https://api.github.com/users/Nikita8877/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nikita8877/Flashcard","description":"","fork":false,"url":"https://api.github.com/repos/Nikita8877/Flashcard","forks_url":"https://api.github.com/repos/Nikita8877/Flashcard/forks","keys_url":"https://api.github.com/repos/Nikita8877/Flashcard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nikita8877/Flashcard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nikita8877/Flashcard/teams","hooks_url":"https://api.github.com/repos/Nikita8877/Flashcard/hooks","issue_events_url":"https://api.github.com/repos/Nikita8877/Flashcard/issues/events{/number}","events_url":"https://api.github.com/repos/Nikita8877/Flashcard/events","assignees_url":"https://api.github.com/repos/Nikita8877/Flashcard/assignees{/user}","branches_url":"https://api.github.com/repos/Nikita8877/Flashcard/branches{/branch}","tags_url":"https://api.github.com/repos/Nikita8877/Flashcard/tags","blobs_url":"https://api.github.com/repos/Nikita8877/Flashcard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nikita8877/Flashcard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nikita8877/Flashcard/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nikita8877/Flashcard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nikita8877/Flashcard/statuses/{sha}","languages_url":"https://api.github.com/repos/Nikita8877/Flashcard/languages","stargazers_url":"https://api.github.com/repos/Nikita8877/Flashcard/stargazers","contributors_url":"https://api.github.com/repos/Nikita8877/Flashcard/contributors","subscribers_url":"https://api.github.com/repos/Nikita8877/Flashcard/subscribers","subscription_url":"https://api.github.com/repos/Nikita8877/Flashcard/subscription","commits_url":"https://api.github.com/repos/Nikita8877/Flashcard/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nikita8877/Flashcard/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nikita8877/Flashcard/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nikita8877/Flashcard/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nikita8877/Flashcard/contents/{+path}","compare_url":"https://api.github.com/repos/Nikita8877/Flashcard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nikita8877/Flashcard/merges","archive_url":"https://api.github.com/repos/Nikita8877/Flashcard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nikita8877/Flashcard/downloads","issues_url":"https://api.github.com/repos/Nikita8877/Flashcard/issues{/number}","pulls_url":"https://api.github.com/repos/Nikita8877/Flashcard/pulls{/number}","milestones_url":"https://api.github.com/repos/Nikita8877/Flashcard/milestones{/number}","notifications_url":"https://api.github.com/repos/Nikita8877/Flashcard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nikita8877/Flashcard/labels{/name}","releases_url":"https://api.github.com/repos/Nikita8877/Flashcard/releases{/id}","created_at":"2015-04-16T18:47:02Z","updated_at":"2015-04-21T17:02:59Z","pushed_at":"2015-04-23T11:18:56Z","git_url":"git://github.com/Nikita8877/Flashcard.git","ssh_url":"git@github.com:Nikita8877/Flashcard.git","clone_url":"https://github.com/Nikita8877/Flashcard.git","svn_url":"https://github.com/Nikita8877/Flashcard","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":"Nikita8877:master","ref":"master","sha":"f2fcdbfca40bda8df754bf29dfb2070b216d3c59","user":{"login":"Nikita8877","id":5137579,"avatar_url":"https://avatars.githubusercontent.com/u/5137579?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikita8877","html_url":"https://github.com/Nikita8877","followers_url":"https://api.github.com/users/Nikita8877/followers","following_url":"https://api.github.com/users/Nikita8877/following{/other_user}","gists_url":"https://api.github.com/users/Nikita8877/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikita8877/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikita8877/subscriptions","organizations_url":"https://api.github.com/users/Nikita8877/orgs","repos_url":"https://api.github.com/users/Nikita8877/repos","events_url":"https://api.github.com/users/Nikita8877/events{/privacy}","received_events_url":"https://api.github.com/users/Nikita8877/received_events","type":"User","site_admin":false},"repo":{"id":34074133,"name":"Flashcard","full_name":"Nikita8877/Flashcard","owner":{"login":"Nikita8877","id":5137579,"avatar_url":"https://avatars.githubusercontent.com/u/5137579?v=3","gravatar_id":"","url":"https://api.github.com/users/Nikita8877","html_url":"https://github.com/Nikita8877","followers_url":"https://api.github.com/users/Nikita8877/followers","following_url":"https://api.github.com/users/Nikita8877/following{/other_user}","gists_url":"https://api.github.com/users/Nikita8877/gists{/gist_id}","starred_url":"https://api.github.com/users/Nikita8877/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nikita8877/subscriptions","organizations_url":"https://api.github.com/users/Nikita8877/orgs","repos_url":"https://api.github.com/users/Nikita8877/repos","events_url":"https://api.github.com/users/Nikita8877/events{/privacy}","received_events_url":"https://api.github.com/users/Nikita8877/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nikita8877/Flashcard","description":"","fork":false,"url":"https://api.github.com/repos/Nikita8877/Flashcard","forks_url":"https://api.github.com/repos/Nikita8877/Flashcard/forks","keys_url":"https://api.github.com/repos/Nikita8877/Flashcard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nikita8877/Flashcard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nikita8877/Flashcard/teams","hooks_url":"https://api.github.com/repos/Nikita8877/Flashcard/hooks","issue_events_url":"https://api.github.com/repos/Nikita8877/Flashcard/issues/events{/number}","events_url":"https://api.github.com/repos/Nikita8877/Flashcard/events","assignees_url":"https://api.github.com/repos/Nikita8877/Flashcard/assignees{/user}","branches_url":"https://api.github.com/repos/Nikita8877/Flashcard/branches{/branch}","tags_url":"https://api.github.com/repos/Nikita8877/Flashcard/tags","blobs_url":"https://api.github.com/repos/Nikita8877/Flashcard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nikita8877/Flashcard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nikita8877/Flashcard/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nikita8877/Flashcard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nikita8877/Flashcard/statuses/{sha}","languages_url":"https://api.github.com/repos/Nikita8877/Flashcard/languages","stargazers_url":"https://api.github.com/repos/Nikita8877/Flashcard/stargazers","contributors_url":"https://api.github.com/repos/Nikita8877/Flashcard/contributors","subscribers_url":"https://api.github.com/repos/Nikita8877/Flashcard/subscribers","subscription_url":"https://api.github.com/repos/Nikita8877/Flashcard/subscription","commits_url":"https://api.github.com/repos/Nikita8877/Flashcard/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nikita8877/Flashcard/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nikita8877/Flashcard/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nikita8877/Flashcard/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nikita8877/Flashcard/contents/{+path}","compare_url":"https://api.github.com/repos/Nikita8877/Flashcard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nikita8877/Flashcard/merges","archive_url":"https://api.github.com/repos/Nikita8877/Flashcard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nikita8877/Flashcard/downloads","issues_url":"https://api.github.com/repos/Nikita8877/Flashcard/issues{/number}","pulls_url":"https://api.github.com/repos/Nikita8877/Flashcard/pulls{/number}","milestones_url":"https://api.github.com/repos/Nikita8877/Flashcard/milestones{/number}","notifications_url":"https://api.github.com/repos/Nikita8877/Flashcard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nikita8877/Flashcard/labels{/name}","releases_url":"https://api.github.com/repos/Nikita8877/Flashcard/releases{/id}","created_at":"2015-04-16T18:47:02Z","updated_at":"2015-04-21T17:02:59Z","pushed_at":"2015-04-23T11:18:56Z","git_url":"git://github.com/Nikita8877/Flashcard.git","ssh_url":"git@github.com:Nikita8877/Flashcard.git","clone_url":"https://github.com/Nikita8877/Flashcard.git","svn_url":"https://github.com/Nikita8877/Flashcard","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/Nikita8877/Flashcard/pulls/3"},"html":{"href":"https://github.com/Nikita8877/Flashcard/pull/3"},"issue":{"href":"https://api.github.com/repos/Nikita8877/Flashcard/issues/3"},"comments":{"href":"https://api.github.com/repos/Nikita8877/Flashcard/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Nikita8877/Flashcard/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Nikita8877/Flashcard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nikita8877/Flashcard/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Nikita8877/Flashcard/statuses/d856a955061d185d5f499eaf28b85d51196c76ab"}}}}