{"action":"created","comment":{"url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/comments/23106982","id":23106982,"diff_hunk":"@@ -1,4 +1,28 @@\n class HomeController < ApplicationController\n+\n   def index\n+      @card = Card.where(\"review_date <= CURRENT_TIMESTAMP\").order(\"RANDOM()\").first\n+    if @card != nil \n+      flash[:card_id] = @card.id","path":"app/controllers/home_controller.rb","position":6,"original_position":6,"commit_id":"98f53e1d32374581e59596da5d16555aae930891","original_commit_id":"98f53e1d32374581e59596da5d16555aae930891","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":"Не имеет. Данные в рельсе передаются http-запросами. ","created_at":"2015-01-16T20:26:19Z","updated_at":"2015-01-16T20:26:19Z","html_url":"https://github.com/bvanyushin/cardsharper/pull/4#discussion_r23106982","pull_request_url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/comments/23106982"},"html":{"href":"https://github.com/bvanyushin/cardsharper/pull/4#discussion_r23106982"},"pull_request":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/4","id":27523223,"html_url":"https://github.com/bvanyushin/cardsharper/pull/4","diff_url":"https://github.com/bvanyushin/cardsharper/pull/4.diff","patch_url":"https://github.com/bvanyushin/cardsharper/pull/4.patch","issue_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues/4","number":4,"state":"open","locked":false,"title":"Fourth task","user":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-16T17:49:30Z","updated_at":"2015-01-16T20:26:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f6f4f8c93b4a5dc519b5e6493e2fea97fe049f8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/4/commits","review_comments_url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/4/comments","review_comment_url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues/4/comments","statuses_url":"https://api.github.com/repos/bvanyushin/cardsharper/statuses/98f53e1d32374581e59596da5d16555aae930891","head":{"label":"bvanyushin:fourth-task","ref":"fourth-task","sha":"98f53e1d32374581e59596da5d16555aae930891","user":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"repo":{"id":29139550,"name":"cardsharper","full_name":"bvanyushin/cardsharper","owner":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bvanyushin/cardsharper","description":"","fork":false,"url":"https://api.github.com/repos/bvanyushin/cardsharper","forks_url":"https://api.github.com/repos/bvanyushin/cardsharper/forks","keys_url":"https://api.github.com/repos/bvanyushin/cardsharper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bvanyushin/cardsharper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bvanyushin/cardsharper/teams","hooks_url":"https://api.github.com/repos/bvanyushin/cardsharper/hooks","issue_events_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues/events{/number}","events_url":"https://api.github.com/repos/bvanyushin/cardsharper/events","assignees_url":"https://api.github.com/repos/bvanyushin/cardsharper/assignees{/user}","branches_url":"https://api.github.com/repos/bvanyushin/cardsharper/branches{/branch}","tags_url":"https://api.github.com/repos/bvanyushin/cardsharper/tags","blobs_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/refs{/sha}","trees_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bvanyushin/cardsharper/statuses/{sha}","languages_url":"https://api.github.com/repos/bvanyushin/cardsharper/languages","stargazers_url":"https://api.github.com/repos/bvanyushin/cardsharper/stargazers","contributors_url":"https://api.github.com/repos/bvanyushin/cardsharper/contributors","subscribers_url":"https://api.github.com/repos/bvanyushin/cardsharper/subscribers","subscription_url":"https://api.github.com/repos/bvanyushin/cardsharper/subscription","commits_url":"https://api.github.com/repos/bvanyushin/cardsharper/commits{/sha}","git_commits_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/commits{/sha}","comments_url":"https://api.github.com/repos/bvanyushin/cardsharper/comments{/number}","issue_comment_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues/comments/{number}","contents_url":"https://api.github.com/repos/bvanyushin/cardsharper/contents/{+path}","compare_url":"https://api.github.com/repos/bvanyushin/cardsharper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bvanyushin/cardsharper/merges","archive_url":"https://api.github.com/repos/bvanyushin/cardsharper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bvanyushin/cardsharper/downloads","issues_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues{/number}","pulls_url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls{/number}","milestones_url":"https://api.github.com/repos/bvanyushin/cardsharper/milestones{/number}","notifications_url":"https://api.github.com/repos/bvanyushin/cardsharper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bvanyushin/cardsharper/labels{/name}","releases_url":"https://api.github.com/repos/bvanyushin/cardsharper/releases{/id}","created_at":"2015-01-12T14:37:00Z","updated_at":"2015-01-15T11:33:10Z","pushed_at":"2015-01-16T17:48:51Z","git_url":"git://github.com/bvanyushin/cardsharper.git","ssh_url":"git@github.com:bvanyushin/cardsharper.git","clone_url":"https://github.com/bvanyushin/cardsharper.git","svn_url":"https://github.com/bvanyushin/cardsharper","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":"bvanyushin:master","ref":"master","sha":"ee7b86d0fabde0013ffe22b5acbf369ee0e7c08d","user":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"repo":{"id":29139550,"name":"cardsharper","full_name":"bvanyushin/cardsharper","owner":{"login":"bvanyushin","id":10248822,"avatar_url":"https://avatars.githubusercontent.com/u/10248822?v=3","gravatar_id":"","url":"https://api.github.com/users/bvanyushin","html_url":"https://github.com/bvanyushin","followers_url":"https://api.github.com/users/bvanyushin/followers","following_url":"https://api.github.com/users/bvanyushin/following{/other_user}","gists_url":"https://api.github.com/users/bvanyushin/gists{/gist_id}","starred_url":"https://api.github.com/users/bvanyushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvanyushin/subscriptions","organizations_url":"https://api.github.com/users/bvanyushin/orgs","repos_url":"https://api.github.com/users/bvanyushin/repos","events_url":"https://api.github.com/users/bvanyushin/events{/privacy}","received_events_url":"https://api.github.com/users/bvanyushin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bvanyushin/cardsharper","description":"","fork":false,"url":"https://api.github.com/repos/bvanyushin/cardsharper","forks_url":"https://api.github.com/repos/bvanyushin/cardsharper/forks","keys_url":"https://api.github.com/repos/bvanyushin/cardsharper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bvanyushin/cardsharper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bvanyushin/cardsharper/teams","hooks_url":"https://api.github.com/repos/bvanyushin/cardsharper/hooks","issue_events_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues/events{/number}","events_url":"https://api.github.com/repos/bvanyushin/cardsharper/events","assignees_url":"https://api.github.com/repos/bvanyushin/cardsharper/assignees{/user}","branches_url":"https://api.github.com/repos/bvanyushin/cardsharper/branches{/branch}","tags_url":"https://api.github.com/repos/bvanyushin/cardsharper/tags","blobs_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/refs{/sha}","trees_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bvanyushin/cardsharper/statuses/{sha}","languages_url":"https://api.github.com/repos/bvanyushin/cardsharper/languages","stargazers_url":"https://api.github.com/repos/bvanyushin/cardsharper/stargazers","contributors_url":"https://api.github.com/repos/bvanyushin/cardsharper/contributors","subscribers_url":"https://api.github.com/repos/bvanyushin/cardsharper/subscribers","subscription_url":"https://api.github.com/repos/bvanyushin/cardsharper/subscription","commits_url":"https://api.github.com/repos/bvanyushin/cardsharper/commits{/sha}","git_commits_url":"https://api.github.com/repos/bvanyushin/cardsharper/git/commits{/sha}","comments_url":"https://api.github.com/repos/bvanyushin/cardsharper/comments{/number}","issue_comment_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues/comments/{number}","contents_url":"https://api.github.com/repos/bvanyushin/cardsharper/contents/{+path}","compare_url":"https://api.github.com/repos/bvanyushin/cardsharper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bvanyushin/cardsharper/merges","archive_url":"https://api.github.com/repos/bvanyushin/cardsharper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bvanyushin/cardsharper/downloads","issues_url":"https://api.github.com/repos/bvanyushin/cardsharper/issues{/number}","pulls_url":"https://api.github.com/repos/bvanyushin/cardsharper/pulls{/number}","milestones_url":"https://api.github.com/repos/bvanyushin/cardsharper/milestones{/number}","notifications_url":"https://api.github.com/repos/bvanyushin/cardsharper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bvanyushin/cardsharper/labels{/name}","releases_url":"https://api.github.com/repos/bvanyushin/cardsharper/releases{/id}","created_at":"2015-01-12T14:37:00Z","updated_at":"2015-01-15T11:33:10Z","pushed_at":"2015-01-16T17:48:51Z","git_url":"git://github.com/bvanyushin/cardsharper.git","ssh_url":"git@github.com:bvanyushin/cardsharper.git","clone_url":"https://github.com/bvanyushin/cardsharper.git","svn_url":"https://github.com/bvanyushin/cardsharper","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/bvanyushin/cardsharper/pulls/4"},"html":{"href":"https://github.com/bvanyushin/cardsharper/pull/4"},"issue":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/issues/4"},"comments":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/bvanyushin/cardsharper/statuses/98f53e1d32374581e59596da5d16555aae930891"}}}}