{"action":"created","comment":{"url":"https://api.github.com/repos/arbox/mkdev-rails/pulls/comments/23881652","id":23881652,"diff_hunk":"@@ -5,6 +6,11 @@ class CardsController < ApplicationController\n   # GET cards_path\n   def index\n     @cards = Card.all\n+\n+    unless @cards.any?\n+      @msg = 'У вас еще нет карточек!'","path":"app/controllers/cards_controller.rb","position":11,"original_position":11,"commit_id":"08edb9b60aa400c53e0e0bacdef01611a150759e","original_commit_id":"08edb9b60aa400c53e0e0bacdef01611a150759e","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":"используй flash ","created_at":"2015-01-30T23:56:08Z","updated_at":"2015-01-30T23:56:08Z","html_url":"https://github.com/arbox/mkdev-rails/pull/4#discussion_r23881652","pull_request_url":"https://api.github.com/repos/arbox/mkdev-rails/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/arbox/mkdev-rails/pulls/comments/23881652"},"html":{"href":"https://github.com/arbox/mkdev-rails/pull/4#discussion_r23881652"},"pull_request":{"href":"https://api.github.com/repos/arbox/mkdev-rails/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/arbox/mkdev-rails/pulls/4","id":28403106,"html_url":"https://github.com/arbox/mkdev-rails/pull/4","diff_url":"https://github.com/arbox/mkdev-rails/pull/4.diff","patch_url":"https://github.com/arbox/mkdev-rails/pull/4.patch","issue_url":"https://api.github.com/repos/arbox/mkdev-rails/issues/4","number":4,"state":"open","locked":false,"title":"Lesson 4","user":{"login":"arbox","id":357237,"avatar_url":"https://avatars.githubusercontent.com/u/357237?v=3","gravatar_id":"","url":"https://api.github.com/users/arbox","html_url":"https://github.com/arbox","followers_url":"https://api.github.com/users/arbox/followers","following_url":"https://api.github.com/users/arbox/following{/other_user}","gists_url":"https://api.github.com/users/arbox/gists{/gist_id}","starred_url":"https://api.github.com/users/arbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbox/subscriptions","organizations_url":"https://api.github.com/users/arbox/orgs","repos_url":"https://api.github.com/users/arbox/repos","events_url":"https://api.github.com/users/arbox/events{/privacy}","received_events_url":"https://api.github.com/users/arbox/received_events","type":"User","site_admin":false},"body":"Implemented a simple review algorithm.","created_at":"2015-01-30T23:49:19Z","updated_at":"2015-01-30T23:56:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82b18745278291d98500f0d33a31ee538eb631ba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/arbox/mkdev-rails/pulls/4/commits","review_comments_url":"https://api.github.com/repos/arbox/mkdev-rails/pulls/4/comments","review_comment_url":"https://api.github.com/repos/arbox/mkdev-rails/pulls/comments/{number}","comments_url":"https://api.github.com/repos/arbox/mkdev-rails/issues/4/comments","statuses_url":"https://api.github.com/repos/arbox/mkdev-rails/statuses/08edb9b60aa400c53e0e0bacdef01611a150759e","head":{"label":"arbox:Lesson-4","ref":"Lesson-4","sha":"08edb9b60aa400c53e0e0bacdef01611a150759e","user":{"login":"arbox","id":357237,"avatar_url":"https://avatars.githubusercontent.com/u/357237?v=3","gravatar_id":"","url":"https://api.github.com/users/arbox","html_url":"https://github.com/arbox","followers_url":"https://api.github.com/users/arbox/followers","following_url":"https://api.github.com/users/arbox/following{/other_user}","gists_url":"https://api.github.com/users/arbox/gists{/gist_id}","starred_url":"https://api.github.com/users/arbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbox/subscriptions","organizations_url":"https://api.github.com/users/arbox/orgs","repos_url":"https://api.github.com/users/arbox/repos","events_url":"https://api.github.com/users/arbox/events{/privacy}","received_events_url":"https://api.github.com/users/arbox/received_events","type":"User","site_admin":false},"repo":{"id":29431043,"name":"mkdev-rails","full_name":"arbox/mkdev-rails","owner":{"login":"arbox","id":357237,"avatar_url":"https://avatars.githubusercontent.com/u/357237?v=3","gravatar_id":"","url":"https://api.github.com/users/arbox","html_url":"https://github.com/arbox","followers_url":"https://api.github.com/users/arbox/followers","following_url":"https://api.github.com/users/arbox/following{/other_user}","gists_url":"https://api.github.com/users/arbox/gists{/gist_id}","starred_url":"https://api.github.com/users/arbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbox/subscriptions","organizations_url":"https://api.github.com/users/arbox/orgs","repos_url":"https://api.github.com/users/arbox/repos","events_url":"https://api.github.com/users/arbox/events{/privacy}","received_events_url":"https://api.github.com/users/arbox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arbox/mkdev-rails","description":"My attempts on MKDEV","fork":false,"url":"https://api.github.com/repos/arbox/mkdev-rails","forks_url":"https://api.github.com/repos/arbox/mkdev-rails/forks","keys_url":"https://api.github.com/repos/arbox/mkdev-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arbox/mkdev-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arbox/mkdev-rails/teams","hooks_url":"https://api.github.com/repos/arbox/mkdev-rails/hooks","issue_events_url":"https://api.github.com/repos/arbox/mkdev-rails/issues/events{/number}","events_url":"https://api.github.com/repos/arbox/mkdev-rails/events","assignees_url":"https://api.github.com/repos/arbox/mkdev-rails/assignees{/user}","branches_url":"https://api.github.com/repos/arbox/mkdev-rails/branches{/branch}","tags_url":"https://api.github.com/repos/arbox/mkdev-rails/tags","blobs_url":"https://api.github.com/repos/arbox/mkdev-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arbox/mkdev-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arbox/mkdev-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/arbox/mkdev-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arbox/mkdev-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/arbox/mkdev-rails/languages","stargazers_url":"https://api.github.com/repos/arbox/mkdev-rails/stargazers","contributors_url":"https://api.github.com/repos/arbox/mkdev-rails/contributors","subscribers_url":"https://api.github.com/repos/arbox/mkdev-rails/subscribers","subscription_url":"https://api.github.com/repos/arbox/mkdev-rails/subscription","commits_url":"https://api.github.com/repos/arbox/mkdev-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/arbox/mkdev-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/arbox/mkdev-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/arbox/mkdev-rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/arbox/mkdev-rails/contents/{+path}","compare_url":"https://api.github.com/repos/arbox/mkdev-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arbox/mkdev-rails/merges","archive_url":"https://api.github.com/repos/arbox/mkdev-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arbox/mkdev-rails/downloads","issues_url":"https://api.github.com/repos/arbox/mkdev-rails/issues{/number}","pulls_url":"https://api.github.com/repos/arbox/mkdev-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/arbox/mkdev-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/arbox/mkdev-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arbox/mkdev-rails/labels{/name}","releases_url":"https://api.github.com/repos/arbox/mkdev-rails/releases{/id}","created_at":"2015-01-18T15:52:23Z","updated_at":"2015-01-29T17:02:05Z","pushed_at":"2015-01-30T23:47:44Z","git_url":"git://github.com/arbox/mkdev-rails.git","ssh_url":"git@github.com:arbox/mkdev-rails.git","clone_url":"https://github.com/arbox/mkdev-rails.git","svn_url":"https://github.com/arbox/mkdev-rails","homepage":null,"size":864,"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":"arbox:master","ref":"master","sha":"8a8a0a7e312df63d7c8b22bd0d9f93eb161d2176","user":{"login":"arbox","id":357237,"avatar_url":"https://avatars.githubusercontent.com/u/357237?v=3","gravatar_id":"","url":"https://api.github.com/users/arbox","html_url":"https://github.com/arbox","followers_url":"https://api.github.com/users/arbox/followers","following_url":"https://api.github.com/users/arbox/following{/other_user}","gists_url":"https://api.github.com/users/arbox/gists{/gist_id}","starred_url":"https://api.github.com/users/arbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbox/subscriptions","organizations_url":"https://api.github.com/users/arbox/orgs","repos_url":"https://api.github.com/users/arbox/repos","events_url":"https://api.github.com/users/arbox/events{/privacy}","received_events_url":"https://api.github.com/users/arbox/received_events","type":"User","site_admin":false},"repo":{"id":29431043,"name":"mkdev-rails","full_name":"arbox/mkdev-rails","owner":{"login":"arbox","id":357237,"avatar_url":"https://avatars.githubusercontent.com/u/357237?v=3","gravatar_id":"","url":"https://api.github.com/users/arbox","html_url":"https://github.com/arbox","followers_url":"https://api.github.com/users/arbox/followers","following_url":"https://api.github.com/users/arbox/following{/other_user}","gists_url":"https://api.github.com/users/arbox/gists{/gist_id}","starred_url":"https://api.github.com/users/arbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbox/subscriptions","organizations_url":"https://api.github.com/users/arbox/orgs","repos_url":"https://api.github.com/users/arbox/repos","events_url":"https://api.github.com/users/arbox/events{/privacy}","received_events_url":"https://api.github.com/users/arbox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arbox/mkdev-rails","description":"My attempts on MKDEV","fork":false,"url":"https://api.github.com/repos/arbox/mkdev-rails","forks_url":"https://api.github.com/repos/arbox/mkdev-rails/forks","keys_url":"https://api.github.com/repos/arbox/mkdev-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arbox/mkdev-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arbox/mkdev-rails/teams","hooks_url":"https://api.github.com/repos/arbox/mkdev-rails/hooks","issue_events_url":"https://api.github.com/repos/arbox/mkdev-rails/issues/events{/number}","events_url":"https://api.github.com/repos/arbox/mkdev-rails/events","assignees_url":"https://api.github.com/repos/arbox/mkdev-rails/assignees{/user}","branches_url":"https://api.github.com/repos/arbox/mkdev-rails/branches{/branch}","tags_url":"https://api.github.com/repos/arbox/mkdev-rails/tags","blobs_url":"https://api.github.com/repos/arbox/mkdev-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arbox/mkdev-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arbox/mkdev-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/arbox/mkdev-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arbox/mkdev-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/arbox/mkdev-rails/languages","stargazers_url":"https://api.github.com/repos/arbox/mkdev-rails/stargazers","contributors_url":"https://api.github.com/repos/arbox/mkdev-rails/contributors","subscribers_url":"https://api.github.com/repos/arbox/mkdev-rails/subscribers","subscription_url":"https://api.github.com/repos/arbox/mkdev-rails/subscription","commits_url":"https://api.github.com/repos/arbox/mkdev-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/arbox/mkdev-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/arbox/mkdev-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/arbox/mkdev-rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/arbox/mkdev-rails/contents/{+path}","compare_url":"https://api.github.com/repos/arbox/mkdev-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arbox/mkdev-rails/merges","archive_url":"https://api.github.com/repos/arbox/mkdev-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arbox/mkdev-rails/downloads","issues_url":"https://api.github.com/repos/arbox/mkdev-rails/issues{/number}","pulls_url":"https://api.github.com/repos/arbox/mkdev-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/arbox/mkdev-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/arbox/mkdev-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arbox/mkdev-rails/labels{/name}","releases_url":"https://api.github.com/repos/arbox/mkdev-rails/releases{/id}","created_at":"2015-01-18T15:52:23Z","updated_at":"2015-01-29T17:02:05Z","pushed_at":"2015-01-30T23:47:44Z","git_url":"git://github.com/arbox/mkdev-rails.git","ssh_url":"git@github.com:arbox/mkdev-rails.git","clone_url":"https://github.com/arbox/mkdev-rails.git","svn_url":"https://github.com/arbox/mkdev-rails","homepage":null,"size":864,"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/arbox/mkdev-rails/pulls/4"},"html":{"href":"https://github.com/arbox/mkdev-rails/pull/4"},"issue":{"href":"https://api.github.com/repos/arbox/mkdev-rails/issues/4"},"comments":{"href":"https://api.github.com/repos/arbox/mkdev-rails/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/arbox/mkdev-rails/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/arbox/mkdev-rails/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/arbox/mkdev-rails/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/arbox/mkdev-rails/statuses/08edb9b60aa400c53e0e0bacdef01611a150759e"}}}}