{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fdf_4/pulls/comments/69415624","id":69415624,"diff_hunk":"@@ -0,0 +1,18 @@\n+class OrderDetailsController < ApplicationController\n+  def create\n+    @order = current_order\n+    @order_detail = @order.order_details.new order_detail_params\n+    @order_detail.priceEach = Product.find(order_detail_params[:product_id]).price","path":"app/controllers/order_details_controller.rb","position":5,"original_position":5,"commit_id":"65ef54b0f964d651e129f38cf9ac4e24706727c8","original_commit_id":"65ef54b0f964d651e129f38cf9ac4e24706727c8","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"body":"em đặt lại tên attribute `priceEach` thành `price_each` nhé. Quy tắc của ruby là vậy","created_at":"2016-07-04T07:07:27Z","updated_at":"2016-07-04T07:07:27Z","html_url":"https://github.com/framgia/fdf_4/pull/26#discussion_r69415624","pull_request_url":"https://api.github.com/repos/framgia/fdf_4/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_4/pulls/comments/69415624"},"html":{"href":"https://github.com/framgia/fdf_4/pull/26#discussion_r69415624"},"pull_request":{"href":"https://api.github.com/repos/framgia/fdf_4/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fdf_4/pulls/26","id":76064688,"html_url":"https://github.com/framgia/fdf_4/pull/26","diff_url":"https://github.com/framgia/fdf_4/pull/26.diff","patch_url":"https://github.com/framgia/fdf_4/pull/26.patch","issue_url":"https://api.github.com/repos/framgia/fdf_4/issues/26","number":26,"state":"open","locked":false,"title":"user can add product to cart","user":{"login":"lethuyb","id":19699543,"avatar_url":"https://avatars.githubusercontent.com/u/19699543?v=3","gravatar_id":"","url":"https://api.github.com/users/lethuyb","html_url":"https://github.com/lethuyb","followers_url":"https://api.github.com/users/lethuyb/followers","following_url":"https://api.github.com/users/lethuyb/following{/other_user}","gists_url":"https://api.github.com/users/lethuyb/gists{/gist_id}","starred_url":"https://api.github.com/users/lethuyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lethuyb/subscriptions","organizations_url":"https://api.github.com/users/lethuyb/orgs","repos_url":"https://api.github.com/users/lethuyb/repos","events_url":"https://api.github.com/users/lethuyb/events{/privacy}","received_events_url":"https://api.github.com/users/lethuyb/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-02T13:08:37Z","updated_at":"2016-07-04T07:07:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"52661420bbf17c8f4115287b35466021ee6d5cc7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fdf_4/pulls/26/commits","review_comments_url":"https://api.github.com/repos/framgia/fdf_4/pulls/26/comments","review_comment_url":"https://api.github.com/repos/framgia/fdf_4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fdf_4/issues/26/comments","statuses_url":"https://api.github.com/repos/framgia/fdf_4/statuses/65ef54b0f964d651e129f38cf9ac4e24706727c8","head":{"label":"lethuyb:user-addCart","ref":"user-addCart","sha":"65ef54b0f964d651e129f38cf9ac4e24706727c8","user":{"login":"lethuyb","id":19699543,"avatar_url":"https://avatars.githubusercontent.com/u/19699543?v=3","gravatar_id":"","url":"https://api.github.com/users/lethuyb","html_url":"https://github.com/lethuyb","followers_url":"https://api.github.com/users/lethuyb/followers","following_url":"https://api.github.com/users/lethuyb/following{/other_user}","gists_url":"https://api.github.com/users/lethuyb/gists{/gist_id}","starred_url":"https://api.github.com/users/lethuyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lethuyb/subscriptions","organizations_url":"https://api.github.com/users/lethuyb/orgs","repos_url":"https://api.github.com/users/lethuyb/repos","events_url":"https://api.github.com/users/lethuyb/events{/privacy}","received_events_url":"https://api.github.com/users/lethuyb/received_events","type":"User","site_admin":false},"repo":{"id":61682667,"name":"fdf_4","full_name":"lethuyb/fdf_4","owner":{"login":"lethuyb","id":19699543,"avatar_url":"https://avatars.githubusercontent.com/u/19699543?v=3","gravatar_id":"","url":"https://api.github.com/users/lethuyb","html_url":"https://github.com/lethuyb","followers_url":"https://api.github.com/users/lethuyb/followers","following_url":"https://api.github.com/users/lethuyb/following{/other_user}","gists_url":"https://api.github.com/users/lethuyb/gists{/gist_id}","starred_url":"https://api.github.com/users/lethuyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lethuyb/subscriptions","organizations_url":"https://api.github.com/users/lethuyb/orgs","repos_url":"https://api.github.com/users/lethuyb/repos","events_url":"https://api.github.com/users/lethuyb/events{/privacy}","received_events_url":"https://api.github.com/users/lethuyb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lethuyb/fdf_4","description":"Foods & Drinks (training)","fork":true,"url":"https://api.github.com/repos/lethuyb/fdf_4","forks_url":"https://api.github.com/repos/lethuyb/fdf_4/forks","keys_url":"https://api.github.com/repos/lethuyb/fdf_4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lethuyb/fdf_4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lethuyb/fdf_4/teams","hooks_url":"https://api.github.com/repos/lethuyb/fdf_4/hooks","issue_events_url":"https://api.github.com/repos/lethuyb/fdf_4/issues/events{/number}","events_url":"https://api.github.com/repos/lethuyb/fdf_4/events","assignees_url":"https://api.github.com/repos/lethuyb/fdf_4/assignees{/user}","branches_url":"https://api.github.com/repos/lethuyb/fdf_4/branches{/branch}","tags_url":"https://api.github.com/repos/lethuyb/fdf_4/tags","blobs_url":"https://api.github.com/repos/lethuyb/fdf_4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lethuyb/fdf_4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lethuyb/fdf_4/git/refs{/sha}","trees_url":"https://api.github.com/repos/lethuyb/fdf_4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lethuyb/fdf_4/statuses/{sha}","languages_url":"https://api.github.com/repos/lethuyb/fdf_4/languages","stargazers_url":"https://api.github.com/repos/lethuyb/fdf_4/stargazers","contributors_url":"https://api.github.com/repos/lethuyb/fdf_4/contributors","subscribers_url":"https://api.github.com/repos/lethuyb/fdf_4/subscribers","subscription_url":"https://api.github.com/repos/lethuyb/fdf_4/subscription","commits_url":"https://api.github.com/repos/lethuyb/fdf_4/commits{/sha}","git_commits_url":"https://api.github.com/repos/lethuyb/fdf_4/git/commits{/sha}","comments_url":"https://api.github.com/repos/lethuyb/fdf_4/comments{/number}","issue_comment_url":"https://api.github.com/repos/lethuyb/fdf_4/issues/comments{/number}","contents_url":"https://api.github.com/repos/lethuyb/fdf_4/contents/{+path}","compare_url":"https://api.github.com/repos/lethuyb/fdf_4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lethuyb/fdf_4/merges","archive_url":"https://api.github.com/repos/lethuyb/fdf_4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lethuyb/fdf_4/downloads","issues_url":"https://api.github.com/repos/lethuyb/fdf_4/issues{/number}","pulls_url":"https://api.github.com/repos/lethuyb/fdf_4/pulls{/number}","milestones_url":"https://api.github.com/repos/lethuyb/fdf_4/milestones{/number}","notifications_url":"https://api.github.com/repos/lethuyb/fdf_4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lethuyb/fdf_4/labels{/name}","releases_url":"https://api.github.com/repos/lethuyb/fdf_4/releases{/id}","deployments_url":"https://api.github.com/repos/lethuyb/fdf_4/deployments","created_at":"2016-06-22T02:29:59Z","updated_at":"2016-06-21T06:21:57Z","pushed_at":"2016-07-04T06:48:07Z","git_url":"git://github.com/lethuyb/fdf_4.git","ssh_url":"git@github.com:lethuyb/fdf_4.git","clone_url":"https://github.com/lethuyb/fdf_4.git","svn_url":"https://github.com/lethuyb/fdf_4","homepage":null,"size":100,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"256a9f58e4ac9d6032bd712588fc6059547518b4","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":61607597,"name":"fdf_4","full_name":"framgia/fdf_4","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fdf_4","description":"Foods & Drinks (training)","fork":false,"url":"https://api.github.com/repos/framgia/fdf_4","forks_url":"https://api.github.com/repos/framgia/fdf_4/forks","keys_url":"https://api.github.com/repos/framgia/fdf_4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fdf_4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fdf_4/teams","hooks_url":"https://api.github.com/repos/framgia/fdf_4/hooks","issue_events_url":"https://api.github.com/repos/framgia/fdf_4/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fdf_4/events","assignees_url":"https://api.github.com/repos/framgia/fdf_4/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fdf_4/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fdf_4/tags","blobs_url":"https://api.github.com/repos/framgia/fdf_4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fdf_4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fdf_4/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fdf_4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fdf_4/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fdf_4/languages","stargazers_url":"https://api.github.com/repos/framgia/fdf_4/stargazers","contributors_url":"https://api.github.com/repos/framgia/fdf_4/contributors","subscribers_url":"https://api.github.com/repos/framgia/fdf_4/subscribers","subscription_url":"https://api.github.com/repos/framgia/fdf_4/subscription","commits_url":"https://api.github.com/repos/framgia/fdf_4/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fdf_4/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fdf_4/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fdf_4/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fdf_4/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fdf_4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fdf_4/merges","archive_url":"https://api.github.com/repos/framgia/fdf_4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fdf_4/downloads","issues_url":"https://api.github.com/repos/framgia/fdf_4/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fdf_4/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fdf_4/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fdf_4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fdf_4/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fdf_4/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fdf_4/deployments","created_at":"2016-06-21T06:21:57Z","updated_at":"2016-06-21T06:21:57Z","pushed_at":"2016-07-04T06:48:08Z","git_url":"git://github.com/framgia/fdf_4.git","ssh_url":"git@github.com:framgia/fdf_4.git","clone_url":"https://github.com/framgia/fdf_4.git","svn_url":"https://github.com/framgia/fdf_4","homepage":null,"size":107,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_4/pulls/26"},"html":{"href":"https://github.com/framgia/fdf_4/pull/26"},"issue":{"href":"https://api.github.com/repos/framgia/fdf_4/issues/26"},"comments":{"href":"https://api.github.com/repos/framgia/fdf_4/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fdf_4/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fdf_4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fdf_4/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fdf_4/statuses/65ef54b0f964d651e129f38cf9ac4e24706727c8"}}}}
{"actor":{"display_login":"dieunb"}}