{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/e-commerce_01/pulls/comments/87736608","pull_request_review_id":8336040,"id":87736608,"diff_hunk":"@@ -61,19 +61,24 @@\n       </h4>\n       <div class=\"col-md-7 col-md-offset-5 customer-info\">\n         <%= form_for [@user, @order] do |f| %>\n-        <%= f.hidden_field :user_id, value: current_user.id %>\n-        <h4><%= t \".shipping_address\" %></h4>\n-        <%= f.text_field :shipping_address, value: current_user.address,\n-          class: \"form-control\", require: true %>\n-        <h4><%= t \".shipping_name\" %></h4>\n-        <%= f.text_field :shipping_name, value: current_user.name,\n-          class: \"form-control\", require: true %>\n-        <h4><%= t \".shipping_email\" %></h4>\n-        <%= f.email_field :shipping_email, value: current_user.email,\n-          class: \"form-control\", require: true %>\n-        <h4><%= t \".message\" %></h4>\n-        <%= f.text_area :message, class: \"form-control\", rows: Settings.rows %>\n-        <%= f.submit t(\".order_now\"), class: \"btn btn-default\" %>\n+          <%= f.hidden_field :user_id, value: current_user.id %>","path":"app/views/orders/new.html.erb","position":26,"original_position":26,"commit_id":"0303a364a141abd4ac3441b916258b7d7bc68782","original_commit_id":"0303a364a141abd4ac3441b916258b7d7bc68782","user":{"login":"nhunght","id":14239703,"avatar_url":"https://avatars.githubusercontent.com/u/14239703?v=3","gravatar_id":"","url":"https://api.github.com/users/nhunght","html_url":"https://github.com/nhunght","followers_url":"https://api.github.com/users/nhunght/followers","following_url":"https://api.github.com/users/nhunght/following{/other_user}","gists_url":"https://api.github.com/users/nhunght/gists{/gist_id}","starred_url":"https://api.github.com/users/nhunght/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhunght/subscriptions","organizations_url":"https://api.github.com/users/nhunght/orgs","repos_url":"https://api.github.com/users/nhunght/repos","events_url":"https://api.github.com/users/nhunght/events{/privacy}","received_events_url":"https://api.github.com/users/nhunght/received_events","type":"User","site_admin":false},"body":"không để hidden_field ở đây nhé.\r\n\r\nphần xử lý này c viết trong controller: current_user.orders.build ..............","created_at":"2016-11-14T04:16:50Z","updated_at":"2016-11-14T04:16:50Z","html_url":"https://github.com/framgia/e-commerce_01/pull/19#discussion_r87736608","pull_request_url":"https://api.github.com/repos/framgia/e-commerce_01/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/framgia/e-commerce_01/pulls/comments/87736608"},"html":{"href":"https://github.com/framgia/e-commerce_01/pull/19#discussion_r87736608"},"pull_request":{"href":"https://api.github.com/repos/framgia/e-commerce_01/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/e-commerce_01/pulls/19","id":93505114,"html_url":"https://github.com/framgia/e-commerce_01/pull/19","diff_url":"https://github.com/framgia/e-commerce_01/pull/19.diff","patch_url":"https://github.com/framgia/e-commerce_01/pull/19.patch","issue_url":"https://api.github.com/repos/framgia/e-commerce_01/issues/19","number":19,"state":"open","locked":false,"title":"History order","user":{"login":"buiquyhoat","id":20752494,"avatar_url":"https://avatars.githubusercontent.com/u/20752494?v=3","gravatar_id":"","url":"https://api.github.com/users/buiquyhoat","html_url":"https://github.com/buiquyhoat","followers_url":"https://api.github.com/users/buiquyhoat/followers","following_url":"https://api.github.com/users/buiquyhoat/following{/other_user}","gists_url":"https://api.github.com/users/buiquyhoat/gists{/gist_id}","starred_url":"https://api.github.com/users/buiquyhoat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buiquyhoat/subscriptions","organizations_url":"https://api.github.com/users/buiquyhoat/orgs","repos_url":"https://api.github.com/users/buiquyhoat/repos","events_url":"https://api.github.com/users/buiquyhoat/events{/privacy}","received_events_url":"https://api.github.com/users/buiquyhoat/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-14T03:59:14Z","updated_at":"2016-11-14T04:16:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8890b97de9155845ff3b3f95ef2263b55dba755f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/e-commerce_01/pulls/19/commits","review_comments_url":"https://api.github.com/repos/framgia/e-commerce_01/pulls/19/comments","review_comment_url":"https://api.github.com/repos/framgia/e-commerce_01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/e-commerce_01/issues/19/comments","statuses_url":"https://api.github.com/repos/framgia/e-commerce_01/statuses/0303a364a141abd4ac3441b916258b7d7bc68782","head":{"label":"buiquyhoat:history-order","ref":"history-order","sha":"0303a364a141abd4ac3441b916258b7d7bc68782","user":{"login":"buiquyhoat","id":20752494,"avatar_url":"https://avatars.githubusercontent.com/u/20752494?v=3","gravatar_id":"","url":"https://api.github.com/users/buiquyhoat","html_url":"https://github.com/buiquyhoat","followers_url":"https://api.github.com/users/buiquyhoat/followers","following_url":"https://api.github.com/users/buiquyhoat/following{/other_user}","gists_url":"https://api.github.com/users/buiquyhoat/gists{/gist_id}","starred_url":"https://api.github.com/users/buiquyhoat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buiquyhoat/subscriptions","organizations_url":"https://api.github.com/users/buiquyhoat/orgs","repos_url":"https://api.github.com/users/buiquyhoat/repos","events_url":"https://api.github.com/users/buiquyhoat/events{/privacy}","received_events_url":"https://api.github.com/users/buiquyhoat/received_events","type":"User","site_admin":false},"repo":{"id":73032392,"name":"e-commerce_01","full_name":"buiquyhoat/e-commerce_01","owner":{"login":"buiquyhoat","id":20752494,"avatar_url":"https://avatars.githubusercontent.com/u/20752494?v=3","gravatar_id":"","url":"https://api.github.com/users/buiquyhoat","html_url":"https://github.com/buiquyhoat","followers_url":"https://api.github.com/users/buiquyhoat/followers","following_url":"https://api.github.com/users/buiquyhoat/following{/other_user}","gists_url":"https://api.github.com/users/buiquyhoat/gists{/gist_id}","starred_url":"https://api.github.com/users/buiquyhoat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buiquyhoat/subscriptions","organizations_url":"https://api.github.com/users/buiquyhoat/orgs","repos_url":"https://api.github.com/users/buiquyhoat/repos","events_url":"https://api.github.com/users/buiquyhoat/events{/privacy}","received_events_url":"https://api.github.com/users/buiquyhoat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/buiquyhoat/e-commerce_01","description":"Ecommerce training","fork":true,"url":"https://api.github.com/repos/buiquyhoat/e-commerce_01","forks_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/forks","keys_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/teams","hooks_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/hooks","issue_events_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/issues/events{/number}","events_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/events","assignees_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/assignees{/user}","branches_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/branches{/branch}","tags_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/tags","blobs_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/statuses/{sha}","languages_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/languages","stargazers_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/stargazers","contributors_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/contributors","subscribers_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/subscribers","subscription_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/subscription","commits_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/contents/{+path}","compare_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/merges","archive_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/downloads","issues_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/issues{/number}","pulls_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/pulls{/number}","milestones_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/milestones{/number}","notifications_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/labels{/name}","releases_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/releases{/id}","deployments_url":"https://api.github.com/repos/buiquyhoat/e-commerce_01/deployments","created_at":"2016-11-07T01:46:18Z","updated_at":"2016-11-04T06:24:10Z","pushed_at":"2016-11-14T04:13:03Z","git_url":"git://github.com/buiquyhoat/e-commerce_01.git","ssh_url":"git@github.com:buiquyhoat/e-commerce_01.git","clone_url":"https://github.com/buiquyhoat/e-commerce_01.git","svn_url":"https://github.com/buiquyhoat/e-commerce_01","homepage":null,"size":597,"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":"568f1abc4d42d9a2aa435f405e146ebe1b7f45b5","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":72820250,"name":"e-commerce_01","full_name":"framgia/e-commerce_01","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/e-commerce_01","description":"Ecommerce training","fork":false,"url":"https://api.github.com/repos/framgia/e-commerce_01","forks_url":"https://api.github.com/repos/framgia/e-commerce_01/forks","keys_url":"https://api.github.com/repos/framgia/e-commerce_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/e-commerce_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/e-commerce_01/teams","hooks_url":"https://api.github.com/repos/framgia/e-commerce_01/hooks","issue_events_url":"https://api.github.com/repos/framgia/e-commerce_01/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/e-commerce_01/events","assignees_url":"https://api.github.com/repos/framgia/e-commerce_01/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/e-commerce_01/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/e-commerce_01/tags","blobs_url":"https://api.github.com/repos/framgia/e-commerce_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/e-commerce_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/e-commerce_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/e-commerce_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/e-commerce_01/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/e-commerce_01/languages","stargazers_url":"https://api.github.com/repos/framgia/e-commerce_01/stargazers","contributors_url":"https://api.github.com/repos/framgia/e-commerce_01/contributors","subscribers_url":"https://api.github.com/repos/framgia/e-commerce_01/subscribers","subscription_url":"https://api.github.com/repos/framgia/e-commerce_01/subscription","commits_url":"https://api.github.com/repos/framgia/e-commerce_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/e-commerce_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/e-commerce_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/e-commerce_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/e-commerce_01/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/e-commerce_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/e-commerce_01/merges","archive_url":"https://api.github.com/repos/framgia/e-commerce_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/e-commerce_01/downloads","issues_url":"https://api.github.com/repos/framgia/e-commerce_01/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/e-commerce_01/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/e-commerce_01/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/e-commerce_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/e-commerce_01/labels{/name}","releases_url":"https://api.github.com/repos/framgia/e-commerce_01/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/e-commerce_01/deployments","created_at":"2016-11-04T06:24:10Z","updated_at":"2016-11-04T06:24:10Z","pushed_at":"2016-11-14T04:13:03Z","git_url":"git://github.com/framgia/e-commerce_01.git","ssh_url":"git@github.com:framgia/e-commerce_01.git","clone_url":"https://github.com/framgia/e-commerce_01.git","svn_url":"https://github.com/framgia/e-commerce_01","homepage":null,"size":610,"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":5,"forks":2,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/e-commerce_01/pulls/19"},"html":{"href":"https://github.com/framgia/e-commerce_01/pull/19"},"issue":{"href":"https://api.github.com/repos/framgia/e-commerce_01/issues/19"},"comments":{"href":"https://api.github.com/repos/framgia/e-commerce_01/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/e-commerce_01/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/e-commerce_01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/e-commerce_01/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/e-commerce_01/statuses/0303a364a141abd4ac3441b916258b7d7bc68782"}}}}
{"actor":{"display_login":"nhunght"}}