{"action":"created","comment":{"url":"https://api.github.com/repos/anatkonimbo/blog/pulls/comments/129231838","pull_request_review_id":51981380,"id":129231838,"diff_hunk":"@@ -1,8 +1,17 @@\n class PostsController < ApplicationController\n \n   def index\n-      @posts = Post.all\n-      @post.average_rate\n+      @posts = Post.order(\"title\").page(params[:page]).per_page(2)\n+\n+      respond_to do |format|\n+        format.html\n+        format.json {","path":"app/controllers/posts_controller.rb","position":10,"original_position":10,"commit_id":"3e0c7e89cbfe29bcb549bb4625a55b95cbd0abdc","original_commit_id":"3e0c7e89cbfe29bcb549bb4625a55b95cbd0abdc","user":{"login":"heimanmorad","id":1102549,"avatar_url":"https://avatars0.githubusercontent.com/u/1102549?v=4","gravatar_id":"","url":"https://api.github.com/users/heimanmorad","html_url":"https://github.com/heimanmorad","followers_url":"https://api.github.com/users/heimanmorad/followers","following_url":"https://api.github.com/users/heimanmorad/following{/other_user}","gists_url":"https://api.github.com/users/heimanmorad/gists{/gist_id}","starred_url":"https://api.github.com/users/heimanmorad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heimanmorad/subscriptions","organizations_url":"https://api.github.com/users/heimanmorad/orgs","repos_url":"https://api.github.com/users/heimanmorad/repos","events_url":"https://api.github.com/users/heimanmorad/events{/privacy}","received_events_url":"https://api.github.com/users/heimanmorad/received_events","type":"User","site_admin":false},"body":"render :json => @posts.to_json( :include => [:comments] )\r\nמגניב אבל זה רמאות\r\nכי את לא בהכרח רוצה לחשוף את כל המשתנים\r\nתצרי פונקציה שמציגה רק את הנתונים שמותרים ל\r\nAPI\r\n","created_at":"2017-07-25T07:37:22Z","updated_at":"2017-07-25T07:50:36Z","html_url":"https://github.com/anatkonimbo/blog/pull/3#discussion_r129231838","pull_request_url":"https://api.github.com/repos/anatkonimbo/blog/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/anatkonimbo/blog/pulls/comments/129231838"},"html":{"href":"https://github.com/anatkonimbo/blog/pull/3#discussion_r129231838"},"pull_request":{"href":"https://api.github.com/repos/anatkonimbo/blog/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/anatkonimbo/blog/pulls/3","id":132063759,"html_url":"https://github.com/anatkonimbo/blog/pull/3","diff_url":"https://github.com/anatkonimbo/blog/pull/3.diff","patch_url":"https://github.com/anatkonimbo/blog/pull/3.patch","issue_url":"https://api.github.com/repos/anatkonimbo/blog/issues/3","number":3,"state":"open","locked":false,"title":"Api","user":{"login":"anatkonimbo","id":17266838,"avatar_url":"https://avatars0.githubusercontent.com/u/17266838?v=4","gravatar_id":"","url":"https://api.github.com/users/anatkonimbo","html_url":"https://github.com/anatkonimbo","followers_url":"https://api.github.com/users/anatkonimbo/followers","following_url":"https://api.github.com/users/anatkonimbo/following{/other_user}","gists_url":"https://api.github.com/users/anatkonimbo/gists{/gist_id}","starred_url":"https://api.github.com/users/anatkonimbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anatkonimbo/subscriptions","organizations_url":"https://api.github.com/users/anatkonimbo/orgs","repos_url":"https://api.github.com/users/anatkonimbo/repos","events_url":"https://api.github.com/users/anatkonimbo/events{/privacy}","received_events_url":"https://api.github.com/users/anatkonimbo/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-24T14:28:51Z","updated_at":"2017-07-25T07:50:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2bd056bcb3ac77e388b1f49a7d2ac7949a95939e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/anatkonimbo/blog/pulls/3/commits","review_comments_url":"https://api.github.com/repos/anatkonimbo/blog/pulls/3/comments","review_comment_url":"https://api.github.com/repos/anatkonimbo/blog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/anatkonimbo/blog/issues/3/comments","statuses_url":"https://api.github.com/repos/anatkonimbo/blog/statuses/3e0c7e89cbfe29bcb549bb4625a55b95cbd0abdc","head":{"label":"anatkonimbo:api","ref":"api","sha":"3e0c7e89cbfe29bcb549bb4625a55b95cbd0abdc","user":{"login":"anatkonimbo","id":17266838,"avatar_url":"https://avatars0.githubusercontent.com/u/17266838?v=4","gravatar_id":"","url":"https://api.github.com/users/anatkonimbo","html_url":"https://github.com/anatkonimbo","followers_url":"https://api.github.com/users/anatkonimbo/followers","following_url":"https://api.github.com/users/anatkonimbo/following{/other_user}","gists_url":"https://api.github.com/users/anatkonimbo/gists{/gist_id}","starred_url":"https://api.github.com/users/anatkonimbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anatkonimbo/subscriptions","organizations_url":"https://api.github.com/users/anatkonimbo/orgs","repos_url":"https://api.github.com/users/anatkonimbo/repos","events_url":"https://api.github.com/users/anatkonimbo/events{/privacy}","received_events_url":"https://api.github.com/users/anatkonimbo/received_events","type":"User","site_admin":false},"repo":{"id":97557626,"name":"blog","full_name":"anatkonimbo/blog","owner":{"login":"anatkonimbo","id":17266838,"avatar_url":"https://avatars0.githubusercontent.com/u/17266838?v=4","gravatar_id":"","url":"https://api.github.com/users/anatkonimbo","html_url":"https://github.com/anatkonimbo","followers_url":"https://api.github.com/users/anatkonimbo/followers","following_url":"https://api.github.com/users/anatkonimbo/following{/other_user}","gists_url":"https://api.github.com/users/anatkonimbo/gists{/gist_id}","starred_url":"https://api.github.com/users/anatkonimbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anatkonimbo/subscriptions","organizations_url":"https://api.github.com/users/anatkonimbo/orgs","repos_url":"https://api.github.com/users/anatkonimbo/repos","events_url":"https://api.github.com/users/anatkonimbo/events{/privacy}","received_events_url":"https://api.github.com/users/anatkonimbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anatkonimbo/blog","description":null,"fork":false,"url":"https://api.github.com/repos/anatkonimbo/blog","forks_url":"https://api.github.com/repos/anatkonimbo/blog/forks","keys_url":"https://api.github.com/repos/anatkonimbo/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anatkonimbo/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anatkonimbo/blog/teams","hooks_url":"https://api.github.com/repos/anatkonimbo/blog/hooks","issue_events_url":"https://api.github.com/repos/anatkonimbo/blog/issues/events{/number}","events_url":"https://api.github.com/repos/anatkonimbo/blog/events","assignees_url":"https://api.github.com/repos/anatkonimbo/blog/assignees{/user}","branches_url":"https://api.github.com/repos/anatkonimbo/blog/branches{/branch}","tags_url":"https://api.github.com/repos/anatkonimbo/blog/tags","blobs_url":"https://api.github.com/repos/anatkonimbo/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anatkonimbo/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anatkonimbo/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/anatkonimbo/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anatkonimbo/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/anatkonimbo/blog/languages","stargazers_url":"https://api.github.com/repos/anatkonimbo/blog/stargazers","contributors_url":"https://api.github.com/repos/anatkonimbo/blog/contributors","subscribers_url":"https://api.github.com/repos/anatkonimbo/blog/subscribers","subscription_url":"https://api.github.com/repos/anatkonimbo/blog/subscription","commits_url":"https://api.github.com/repos/anatkonimbo/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/anatkonimbo/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/anatkonimbo/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/anatkonimbo/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/anatkonimbo/blog/contents/{+path}","compare_url":"https://api.github.com/repos/anatkonimbo/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anatkonimbo/blog/merges","archive_url":"https://api.github.com/repos/anatkonimbo/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anatkonimbo/blog/downloads","issues_url":"https://api.github.com/repos/anatkonimbo/blog/issues{/number}","pulls_url":"https://api.github.com/repos/anatkonimbo/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/anatkonimbo/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/anatkonimbo/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anatkonimbo/blog/labels{/name}","releases_url":"https://api.github.com/repos/anatkonimbo/blog/releases{/id}","deployments_url":"https://api.github.com/repos/anatkonimbo/blog/deployments","created_at":"2017-07-18T05:48:15Z","updated_at":"2017-07-18T05:50:49Z","pushed_at":"2017-07-25T07:38:03Z","git_url":"git://github.com/anatkonimbo/blog.git","ssh_url":"git@github.com:anatkonimbo/blog.git","clone_url":"https://github.com/anatkonimbo/blog.git","svn_url":"https://github.com/anatkonimbo/blog","homepage":null,"size":564,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"anatkonimbo:master","ref":"master","sha":"4362f330487b3a19597f421aa72d463659d63c32","user":{"login":"anatkonimbo","id":17266838,"avatar_url":"https://avatars0.githubusercontent.com/u/17266838?v=4","gravatar_id":"","url":"https://api.github.com/users/anatkonimbo","html_url":"https://github.com/anatkonimbo","followers_url":"https://api.github.com/users/anatkonimbo/followers","following_url":"https://api.github.com/users/anatkonimbo/following{/other_user}","gists_url":"https://api.github.com/users/anatkonimbo/gists{/gist_id}","starred_url":"https://api.github.com/users/anatkonimbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anatkonimbo/subscriptions","organizations_url":"https://api.github.com/users/anatkonimbo/orgs","repos_url":"https://api.github.com/users/anatkonimbo/repos","events_url":"https://api.github.com/users/anatkonimbo/events{/privacy}","received_events_url":"https://api.github.com/users/anatkonimbo/received_events","type":"User","site_admin":false},"repo":{"id":97557626,"name":"blog","full_name":"anatkonimbo/blog","owner":{"login":"anatkonimbo","id":17266838,"avatar_url":"https://avatars0.githubusercontent.com/u/17266838?v=4","gravatar_id":"","url":"https://api.github.com/users/anatkonimbo","html_url":"https://github.com/anatkonimbo","followers_url":"https://api.github.com/users/anatkonimbo/followers","following_url":"https://api.github.com/users/anatkonimbo/following{/other_user}","gists_url":"https://api.github.com/users/anatkonimbo/gists{/gist_id}","starred_url":"https://api.github.com/users/anatkonimbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anatkonimbo/subscriptions","organizations_url":"https://api.github.com/users/anatkonimbo/orgs","repos_url":"https://api.github.com/users/anatkonimbo/repos","events_url":"https://api.github.com/users/anatkonimbo/events{/privacy}","received_events_url":"https://api.github.com/users/anatkonimbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anatkonimbo/blog","description":null,"fork":false,"url":"https://api.github.com/repos/anatkonimbo/blog","forks_url":"https://api.github.com/repos/anatkonimbo/blog/forks","keys_url":"https://api.github.com/repos/anatkonimbo/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anatkonimbo/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anatkonimbo/blog/teams","hooks_url":"https://api.github.com/repos/anatkonimbo/blog/hooks","issue_events_url":"https://api.github.com/repos/anatkonimbo/blog/issues/events{/number}","events_url":"https://api.github.com/repos/anatkonimbo/blog/events","assignees_url":"https://api.github.com/repos/anatkonimbo/blog/assignees{/user}","branches_url":"https://api.github.com/repos/anatkonimbo/blog/branches{/branch}","tags_url":"https://api.github.com/repos/anatkonimbo/blog/tags","blobs_url":"https://api.github.com/repos/anatkonimbo/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anatkonimbo/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anatkonimbo/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/anatkonimbo/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anatkonimbo/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/anatkonimbo/blog/languages","stargazers_url":"https://api.github.com/repos/anatkonimbo/blog/stargazers","contributors_url":"https://api.github.com/repos/anatkonimbo/blog/contributors","subscribers_url":"https://api.github.com/repos/anatkonimbo/blog/subscribers","subscription_url":"https://api.github.com/repos/anatkonimbo/blog/subscription","commits_url":"https://api.github.com/repos/anatkonimbo/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/anatkonimbo/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/anatkonimbo/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/anatkonimbo/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/anatkonimbo/blog/contents/{+path}","compare_url":"https://api.github.com/repos/anatkonimbo/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anatkonimbo/blog/merges","archive_url":"https://api.github.com/repos/anatkonimbo/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anatkonimbo/blog/downloads","issues_url":"https://api.github.com/repos/anatkonimbo/blog/issues{/number}","pulls_url":"https://api.github.com/repos/anatkonimbo/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/anatkonimbo/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/anatkonimbo/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anatkonimbo/blog/labels{/name}","releases_url":"https://api.github.com/repos/anatkonimbo/blog/releases{/id}","deployments_url":"https://api.github.com/repos/anatkonimbo/blog/deployments","created_at":"2017-07-18T05:48:15Z","updated_at":"2017-07-18T05:50:49Z","pushed_at":"2017-07-25T07:38:03Z","git_url":"git://github.com/anatkonimbo/blog.git","ssh_url":"git@github.com:anatkonimbo/blog.git","clone_url":"https://github.com/anatkonimbo/blog.git","svn_url":"https://github.com/anatkonimbo/blog","homepage":null,"size":564,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/anatkonimbo/blog/pulls/3"},"html":{"href":"https://github.com/anatkonimbo/blog/pull/3"},"issue":{"href":"https://api.github.com/repos/anatkonimbo/blog/issues/3"},"comments":{"href":"https://api.github.com/repos/anatkonimbo/blog/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/anatkonimbo/blog/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/anatkonimbo/blog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/anatkonimbo/blog/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/anatkonimbo/blog/statuses/3e0c7e89cbfe29bcb549bb4625a55b95cbd0abdc"}}}}
{"actor":{"display_login":"heimanmorad"}}