{"action":"created","comment":{"url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls/comments/97735236","pull_request_review_id":18352712,"id":97735236,"diff_hunk":"@@ -0,0 +1,83 @@\n+require 'sinatra'\n+require 'sinatra/activerecord'\n+require 'json'\n+require './models/user'\n+require './models/post'\n+\n+get '/' do\n+  redirect '/users'\n+end\n+\n+get '/posts' do\n+  @posts = Post.all\n+  @users = User.all\n+  erb :'/posts/index'\n+end\n+\n+get '/posts/show/:id' do\n+  @posts = Post.where(user_id: params[:id])\n+  erb :'/posts/show'\n+end\n+\n+get '/posts/new/:id' do","path":"homeworks/oleg.monastyretsky_shuforov/Homework_8/app.rb","position":22,"original_position":22,"commit_id":"2be3ce37b8f65b5335d77f314fd992d1771a92a6","original_commit_id":"2be3ce37b8f65b5335d77f314fd992d1771a92a6","user":{"login":"skoddowl","id":9293238,"avatar_url":"https://avatars.githubusercontent.com/u/9293238?v=3","gravatar_id":"","url":"https://api.github.com/users/skoddowl","html_url":"https://github.com/skoddowl","followers_url":"https://api.github.com/users/skoddowl/followers","following_url":"https://api.github.com/users/skoddowl/following{/other_user}","gists_url":"https://api.github.com/users/skoddowl/gists{/gist_id}","starred_url":"https://api.github.com/users/skoddowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skoddowl/subscriptions","organizations_url":"https://api.github.com/users/skoddowl/orgs","repos_url":"https://api.github.com/users/skoddowl/repos","events_url":"https://api.github.com/users/skoddowl/events{/privacy}","received_events_url":"https://api.github.com/users/skoddowl/received_events","type":"User","site_admin":false},"body":"`/users/:id/posts/new`","created_at":"2017-01-25T09:10:52Z","updated_at":"2017-01-25T09:10:52Z","html_url":"https://github.com/MastersAcademy/ruby-rails-course/pull/319#discussion_r97735236","pull_request_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls/319","_links":{"self":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls/comments/97735236"},"html":{"href":"https://github.com/MastersAcademy/ruby-rails-course/pull/319#discussion_r97735236"},"pull_request":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls/319"}}},"pull_request":{"url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls/319","id":102587528,"html_url":"https://github.com/MastersAcademy/ruby-rails-course/pull/319","diff_url":"https://github.com/MastersAcademy/ruby-rails-course/pull/319.diff","patch_url":"https://github.com/MastersAcademy/ruby-rails-course/pull/319.patch","issue_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/issues/319","number":319,"state":"open","locked":false,"title":"Homework 8","user":{"login":"shuforov","id":11350500,"avatar_url":"https://avatars.githubusercontent.com/u/11350500?v=3","gravatar_id":"","url":"https://api.github.com/users/shuforov","html_url":"https://github.com/shuforov","followers_url":"https://api.github.com/users/shuforov/followers","following_url":"https://api.github.com/users/shuforov/following{/other_user}","gists_url":"https://api.github.com/users/shuforov/gists{/gist_id}","starred_url":"https://api.github.com/users/shuforov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuforov/subscriptions","organizations_url":"https://api.github.com/users/shuforov/orgs","repos_url":"https://api.github.com/users/shuforov/repos","events_url":"https://api.github.com/users/shuforov/events{/privacy}","received_events_url":"https://api.github.com/users/shuforov/received_events","type":"User","site_admin":false},"body":"1 bundler install\r\n2 rackup\r\n3 http://localhost:9292/\r\n\r\nDeployed to heroku without error, but when application start browser show \"Internal Server Error\" message.\r\n[deploy log](https://gist.github.com/shuforov/eac01ec9a4afe11fad1634425fee21a4#file-heroku-log) [heroku log](https://gist.github.com/shuforov/eac01ec9a4afe11fad1634425fee21a4#file-heroku-view-log)","created_at":"2017-01-21T16:21:00Z","updated_at":"2017-01-25T09:10:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4083caa98d77daaa15964f464bf2a0a5602b031a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls/319/commits","review_comments_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls/319/comments","review_comment_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/issues/319/comments","statuses_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/statuses/2be3ce37b8f65b5335d77f314fd992d1771a92a6","head":{"label":"shuforov:master","ref":"master","sha":"2be3ce37b8f65b5335d77f314fd992d1771a92a6","user":{"login":"shuforov","id":11350500,"avatar_url":"https://avatars.githubusercontent.com/u/11350500?v=3","gravatar_id":"","url":"https://api.github.com/users/shuforov","html_url":"https://github.com/shuforov","followers_url":"https://api.github.com/users/shuforov/followers","following_url":"https://api.github.com/users/shuforov/following{/other_user}","gists_url":"https://api.github.com/users/shuforov/gists{/gist_id}","starred_url":"https://api.github.com/users/shuforov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuforov/subscriptions","organizations_url":"https://api.github.com/users/shuforov/orgs","repos_url":"https://api.github.com/users/shuforov/repos","events_url":"https://api.github.com/users/shuforov/events{/privacy}","received_events_url":"https://api.github.com/users/shuforov/received_events","type":"User","site_admin":false},"repo":{"id":72673424,"name":"ruby-rails-course","full_name":"shuforov/ruby-rails-course","owner":{"login":"shuforov","id":11350500,"avatar_url":"https://avatars.githubusercontent.com/u/11350500?v=3","gravatar_id":"","url":"https://api.github.com/users/shuforov","html_url":"https://github.com/shuforov","followers_url":"https://api.github.com/users/shuforov/followers","following_url":"https://api.github.com/users/shuforov/following{/other_user}","gists_url":"https://api.github.com/users/shuforov/gists{/gist_id}","starred_url":"https://api.github.com/users/shuforov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shuforov/subscriptions","organizations_url":"https://api.github.com/users/shuforov/orgs","repos_url":"https://api.github.com/users/shuforov/repos","events_url":"https://api.github.com/users/shuforov/events{/privacy}","received_events_url":"https://api.github.com/users/shuforov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shuforov/ruby-rails-course","description":null,"fork":true,"url":"https://api.github.com/repos/shuforov/ruby-rails-course","forks_url":"https://api.github.com/repos/shuforov/ruby-rails-course/forks","keys_url":"https://api.github.com/repos/shuforov/ruby-rails-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shuforov/ruby-rails-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shuforov/ruby-rails-course/teams","hooks_url":"https://api.github.com/repos/shuforov/ruby-rails-course/hooks","issue_events_url":"https://api.github.com/repos/shuforov/ruby-rails-course/issues/events{/number}","events_url":"https://api.github.com/repos/shuforov/ruby-rails-course/events","assignees_url":"https://api.github.com/repos/shuforov/ruby-rails-course/assignees{/user}","branches_url":"https://api.github.com/repos/shuforov/ruby-rails-course/branches{/branch}","tags_url":"https://api.github.com/repos/shuforov/ruby-rails-course/tags","blobs_url":"https://api.github.com/repos/shuforov/ruby-rails-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shuforov/ruby-rails-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shuforov/ruby-rails-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/shuforov/ruby-rails-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shuforov/ruby-rails-course/statuses/{sha}","languages_url":"https://api.github.com/repos/shuforov/ruby-rails-course/languages","stargazers_url":"https://api.github.com/repos/shuforov/ruby-rails-course/stargazers","contributors_url":"https://api.github.com/repos/shuforov/ruby-rails-course/contributors","subscribers_url":"https://api.github.com/repos/shuforov/ruby-rails-course/subscribers","subscription_url":"https://api.github.com/repos/shuforov/ruby-rails-course/subscription","commits_url":"https://api.github.com/repos/shuforov/ruby-rails-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/shuforov/ruby-rails-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/shuforov/ruby-rails-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/shuforov/ruby-rails-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/shuforov/ruby-rails-course/contents/{+path}","compare_url":"https://api.github.com/repos/shuforov/ruby-rails-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shuforov/ruby-rails-course/merges","archive_url":"https://api.github.com/repos/shuforov/ruby-rails-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shuforov/ruby-rails-course/downloads","issues_url":"https://api.github.com/repos/shuforov/ruby-rails-course/issues{/number}","pulls_url":"https://api.github.com/repos/shuforov/ruby-rails-course/pulls{/number}","milestones_url":"https://api.github.com/repos/shuforov/ruby-rails-course/milestones{/number}","notifications_url":"https://api.github.com/repos/shuforov/ruby-rails-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shuforov/ruby-rails-course/labels{/name}","releases_url":"https://api.github.com/repos/shuforov/ruby-rails-course/releases{/id}","deployments_url":"https://api.github.com/repos/shuforov/ruby-rails-course/deployments","created_at":"2016-11-02T19:20:41Z","updated_at":"2016-11-02T19:20:43Z","pushed_at":"2017-01-25T00:36:42Z","git_url":"git://github.com/shuforov/ruby-rails-course.git","ssh_url":"git@github.com:shuforov/ruby-rails-course.git","clone_url":"https://github.com/shuforov/ruby-rails-course.git","svn_url":"https://github.com/shuforov/ruby-rails-course","homepage":null,"size":891,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MastersAcademy:master","ref":"master","sha":"22e4bb8ceb78a5ba322d95a4873884a1c2aee8d7","user":{"login":"MastersAcademy","id":22305415,"avatar_url":"https://avatars.githubusercontent.com/u/22305415?v=3","gravatar_id":"","url":"https://api.github.com/users/MastersAcademy","html_url":"https://github.com/MastersAcademy","followers_url":"https://api.github.com/users/MastersAcademy/followers","following_url":"https://api.github.com/users/MastersAcademy/following{/other_user}","gists_url":"https://api.github.com/users/MastersAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/MastersAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastersAcademy/subscriptions","organizations_url":"https://api.github.com/users/MastersAcademy/orgs","repos_url":"https://api.github.com/users/MastersAcademy/repos","events_url":"https://api.github.com/users/MastersAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/MastersAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":72105879,"name":"ruby-rails-course","full_name":"MastersAcademy/ruby-rails-course","owner":{"login":"MastersAcademy","id":22305415,"avatar_url":"https://avatars.githubusercontent.com/u/22305415?v=3","gravatar_id":"","url":"https://api.github.com/users/MastersAcademy","html_url":"https://github.com/MastersAcademy","followers_url":"https://api.github.com/users/MastersAcademy/followers","following_url":"https://api.github.com/users/MastersAcademy/following{/other_user}","gists_url":"https://api.github.com/users/MastersAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/MastersAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastersAcademy/subscriptions","organizations_url":"https://api.github.com/users/MastersAcademy/orgs","repos_url":"https://api.github.com/users/MastersAcademy/repos","events_url":"https://api.github.com/users/MastersAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/MastersAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MastersAcademy/ruby-rails-course","description":"Репозиторій з курсу \"Ruby&Rails\" проекту Masters Academy","fork":false,"url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course","forks_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/forks","keys_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/teams","hooks_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/hooks","issue_events_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/issues/events{/number}","events_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/events","assignees_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/assignees{/user}","branches_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/branches{/branch}","tags_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/tags","blobs_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/statuses/{sha}","languages_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/languages","stargazers_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/stargazers","contributors_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/contributors","subscribers_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/subscribers","subscription_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/subscription","commits_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/contents/{+path}","compare_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/merges","archive_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/downloads","issues_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/issues{/number}","pulls_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls{/number}","milestones_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/milestones{/number}","notifications_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/labels{/name}","releases_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/releases{/id}","deployments_url":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/deployments","created_at":"2016-10-27T12:26:56Z","updated_at":"2016-11-10T20:57:59Z","pushed_at":"2017-01-25T00:36:43Z","git_url":"git://github.com/MastersAcademy/ruby-rails-course.git","ssh_url":"git@github.com:MastersAcademy/ruby-rails-course.git","clone_url":"https://github.com/MastersAcademy/ruby-rails-course.git","svn_url":"https://github.com/MastersAcademy/ruby-rails-course","homepage":"https://www.facebook.com/cherkasy.masters/","size":1659,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":7,"forks":57,"open_issues":7,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls/319"},"html":{"href":"https://github.com/MastersAcademy/ruby-rails-course/pull/319"},"issue":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/issues/319"},"comments":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/issues/319/comments"},"review_comments":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls/319/comments"},"review_comment":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/pulls/319/commits"},"statuses":{"href":"https://api.github.com/repos/MastersAcademy/ruby-rails-course/statuses/2be3ce37b8f65b5335d77f314fd992d1771a92a6"}}}}
{"actor":{"display_login":"skoddowl"}}