{"action":"created","comment":{"url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/comments/23648536","id":23648536,"diff_hunk":"@@ -9,4 +9,22 @@ def show\n     @order = Order.find(params[:id])\n     authorize! :read, @order\n   end\n+\n+  def new\n+  end\n+\n+  def create\n+    @user = User.find(params[:user_id])\n+    @order = Order.create(status: \"ordered\", total: @cart.total * 100, user_id: @user.id)\n+    items = Item.find(@cart.data.keys)\n+    @line_items = items.map do |item|\n+                    OrdersItem.create(order_id: @order.id,\n+                    item_id: item.id,","path":"app/controllers/orders_controller.rb","position":14,"original_position":14,"commit_id":"1c27906d18db78cf71df9b2972614dee5ee37089","original_commit_id":"1c27906d18db78cf71df9b2972614dee5ee37089","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Align the elements of a hash literal if they span more than one line.","created_at":"2015-01-27T22:21:17Z","updated_at":"2015-01-27T22:21:17Z","html_url":"https://github.com/bhargavisatpathy/dinner_dash/pull/97#discussion_r23648536","pull_request_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/comments/23648536"},"html":{"href":"https://github.com/bhargavisatpathy/dinner_dash/pull/97#discussion_r23648536"},"pull_request":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/97","id":28150067,"html_url":"https://github.com/bhargavisatpathy/dinner_dash/pull/97","diff_url":"https://github.com/bhargavisatpathy/dinner_dash/pull/97.diff","patch_url":"https://github.com/bhargavisatpathy/dinner_dash/pull/97.patch","issue_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/97","number":97,"state":"open","locked":false,"title":"Checkout","user":{"login":"laurawhalin","id":8449527,"avatar_url":"https://avatars.githubusercontent.com/u/8449527?v=3","gravatar_id":"","url":"https://api.github.com/users/laurawhalin","html_url":"https://github.com/laurawhalin","followers_url":"https://api.github.com/users/laurawhalin/followers","following_url":"https://api.github.com/users/laurawhalin/following{/other_user}","gists_url":"https://api.github.com/users/laurawhalin/gists{/gist_id}","starred_url":"https://api.github.com/users/laurawhalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurawhalin/subscriptions","organizations_url":"https://api.github.com/users/laurawhalin/orgs","repos_url":"https://api.github.com/users/laurawhalin/repos","events_url":"https://api.github.com/users/laurawhalin/events{/privacy}","received_events_url":"https://api.github.com/users/laurawhalin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-27T22:21:14Z","updated_at":"2015-01-27T22:21:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90ddab2a8dc2df4fb46a0ff90caf9dcf8b8e26ae","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/97/commits","review_comments_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/97/comments","review_comment_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/97/comments","statuses_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/statuses/1c27906d18db78cf71df9b2972614dee5ee37089","head":{"label":"bhargavisatpathy:checkout","ref":"checkout","sha":"1c27906d18db78cf71df9b2972614dee5ee37089","user":{"login":"bhargavisatpathy","id":8531351,"avatar_url":"https://avatars.githubusercontent.com/u/8531351?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavisatpathy","html_url":"https://github.com/bhargavisatpathy","followers_url":"https://api.github.com/users/bhargavisatpathy/followers","following_url":"https://api.github.com/users/bhargavisatpathy/following{/other_user}","gists_url":"https://api.github.com/users/bhargavisatpathy/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavisatpathy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavisatpathy/subscriptions","organizations_url":"https://api.github.com/users/bhargavisatpathy/orgs","repos_url":"https://api.github.com/users/bhargavisatpathy/repos","events_url":"https://api.github.com/users/bhargavisatpathy/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavisatpathy/received_events","type":"User","site_admin":false},"repo":{"id":29540093,"name":"dinner_dash","full_name":"bhargavisatpathy/dinner_dash","owner":{"login":"bhargavisatpathy","id":8531351,"avatar_url":"https://avatars.githubusercontent.com/u/8531351?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavisatpathy","html_url":"https://github.com/bhargavisatpathy","followers_url":"https://api.github.com/users/bhargavisatpathy/followers","following_url":"https://api.github.com/users/bhargavisatpathy/following{/other_user}","gists_url":"https://api.github.com/users/bhargavisatpathy/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavisatpathy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavisatpathy/subscriptions","organizations_url":"https://api.github.com/users/bhargavisatpathy/orgs","repos_url":"https://api.github.com/users/bhargavisatpathy/repos","events_url":"https://api.github.com/users/bhargavisatpathy/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavisatpathy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhargavisatpathy/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash","forks_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/forks","keys_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/teams","hooks_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/events","assignees_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/tags","blobs_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/subscription","commits_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/comments/{number}","contents_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/merges","archive_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/downloads","issues_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/releases{/id}","created_at":"2015-01-20T16:44:14Z","updated_at":"2015-01-27T19:14:46Z","pushed_at":"2015-01-27T22:20:56Z","git_url":"git://github.com/bhargavisatpathy/dinner_dash.git","ssh_url":"git@github.com:bhargavisatpathy/dinner_dash.git","clone_url":"https://github.com/bhargavisatpathy/dinner_dash.git","svn_url":"https://github.com/bhargavisatpathy/dinner_dash","homepage":null,"size":4335,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":20,"forks":3,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"bhargavisatpathy:master","ref":"master","sha":"104f05460e64821c8e78b862ae289d0233ac3673","user":{"login":"bhargavisatpathy","id":8531351,"avatar_url":"https://avatars.githubusercontent.com/u/8531351?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavisatpathy","html_url":"https://github.com/bhargavisatpathy","followers_url":"https://api.github.com/users/bhargavisatpathy/followers","following_url":"https://api.github.com/users/bhargavisatpathy/following{/other_user}","gists_url":"https://api.github.com/users/bhargavisatpathy/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavisatpathy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavisatpathy/subscriptions","organizations_url":"https://api.github.com/users/bhargavisatpathy/orgs","repos_url":"https://api.github.com/users/bhargavisatpathy/repos","events_url":"https://api.github.com/users/bhargavisatpathy/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavisatpathy/received_events","type":"User","site_admin":false},"repo":{"id":29540093,"name":"dinner_dash","full_name":"bhargavisatpathy/dinner_dash","owner":{"login":"bhargavisatpathy","id":8531351,"avatar_url":"https://avatars.githubusercontent.com/u/8531351?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavisatpathy","html_url":"https://github.com/bhargavisatpathy","followers_url":"https://api.github.com/users/bhargavisatpathy/followers","following_url":"https://api.github.com/users/bhargavisatpathy/following{/other_user}","gists_url":"https://api.github.com/users/bhargavisatpathy/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavisatpathy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavisatpathy/subscriptions","organizations_url":"https://api.github.com/users/bhargavisatpathy/orgs","repos_url":"https://api.github.com/users/bhargavisatpathy/repos","events_url":"https://api.github.com/users/bhargavisatpathy/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavisatpathy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhargavisatpathy/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash","forks_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/forks","keys_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/teams","hooks_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/events","assignees_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/tags","blobs_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/subscription","commits_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/comments/{number}","contents_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/merges","archive_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/downloads","issues_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/releases{/id}","created_at":"2015-01-20T16:44:14Z","updated_at":"2015-01-27T19:14:46Z","pushed_at":"2015-01-27T22:20:56Z","git_url":"git://github.com/bhargavisatpathy/dinner_dash.git","ssh_url":"git@github.com:bhargavisatpathy/dinner_dash.git","clone_url":"https://github.com/bhargavisatpathy/dinner_dash.git","svn_url":"https://github.com/bhargavisatpathy/dinner_dash","homepage":null,"size":4335,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":20,"forks":3,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/97"},"html":{"href":"https://github.com/bhargavisatpathy/dinner_dash/pull/97"},"issue":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/97"},"comments":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/statuses/1c27906d18db78cf71df9b2972614dee5ee37089"}}}}