{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/ecommerce_08/pulls/comments/94095519","pull_request_review_id":14626048,"id":94095519,"diff_hunk":"@@ -0,0 +1,39 @@\n+class Admin::ProductsController < ApplicationController\n+  def new\n+    @product = Product.new\n+  end\n+\n+  def index\n+    @products = Product.paginate per_page: Settings.per_pages.products,\n+      page: params[:page]\n+  end\n+\n+  def create\n+    @product = Product.new product_params\n+    if @product.save\n+      flash[:success] = t \".create_product_success\"\n+    else\n+      flash[:danger] = t \".create_product_fail\"\n+    end\n+    redirect_to request.referer","path":"app/controllers/admin/products_controller.rb","position":18,"original_position":18,"commit_id":"c8ea1dd6e6c60cb95e716341f37442f82396a18b","original_commit_id":"c8ea1dd6e6c60cb95e716341f37442f82396a18b","user":{"login":"dothidiemthao","id":21377118,"avatar_url":"https://avatars.githubusercontent.com/u/21377118?v=3","gravatar_id":"","url":"https://api.github.com/users/dothidiemthao","html_url":"https://github.com/dothidiemthao","followers_url":"https://api.github.com/users/dothidiemthao/followers","following_url":"https://api.github.com/users/dothidiemthao/following{/other_user}","gists_url":"https://api.github.com/users/dothidiemthao/gists{/gist_id}","starred_url":"https://api.github.com/users/dothidiemthao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dothidiemthao/subscriptions","organizations_url":"https://api.github.com/users/dothidiemthao/orgs","repos_url":"https://api.github.com/users/dothidiemthao/repos","events_url":"https://api.github.com/users/dothidiemthao/events{/privacy}","received_events_url":"https://api.github.com/users/dothidiemthao/received_events","type":"User","site_admin":false},"body":"request.referer ở đây là gì?","created_at":"2016-12-29T02:09:28Z","updated_at":"2016-12-29T02:15:04Z","html_url":"https://github.com/framgia/ecommerce_08/pull/21#discussion_r94095519","pull_request_url":"https://api.github.com/repos/framgia/ecommerce_08/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/framgia/ecommerce_08/pulls/comments/94095519"},"html":{"href":"https://github.com/framgia/ecommerce_08/pull/21#discussion_r94095519"},"pull_request":{"href":"https://api.github.com/repos/framgia/ecommerce_08/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/ecommerce_08/pulls/21","id":99533555,"html_url":"https://github.com/framgia/ecommerce_08/pull/21","diff_url":"https://github.com/framgia/ecommerce_08/pull/21.diff","patch_url":"https://github.com/framgia/ecommerce_08/pull/21.patch","issue_url":"https://api.github.com/repos/framgia/ecommerce_08/issues/21","number":21,"state":"open","locked":false,"title":"add list product [admin]","user":{"login":"nguyenthaiphuongframgia","id":24314210,"avatar_url":"https://avatars.githubusercontent.com/u/24314210?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenthaiphuongframgia","html_url":"https://github.com/nguyenthaiphuongframgia","followers_url":"https://api.github.com/users/nguyenthaiphuongframgia/followers","following_url":"https://api.github.com/users/nguyenthaiphuongframgia/following{/other_user}","gists_url":"https://api.github.com/users/nguyenthaiphuongframgia/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenthaiphuongframgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenthaiphuongframgia/subscriptions","organizations_url":"https://api.github.com/users/nguyenthaiphuongframgia/orgs","repos_url":"https://api.github.com/users/nguyenthaiphuongframgia/repos","events_url":"https://api.github.com/users/nguyenthaiphuongframgia/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenthaiphuongframgia/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-28T10:33:57Z","updated_at":"2016-12-29T02:15:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16e5af17f07ab9b6e2424e609d51a6d51a441031","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/ecommerce_08/pulls/21/commits","review_comments_url":"https://api.github.com/repos/framgia/ecommerce_08/pulls/21/comments","review_comment_url":"https://api.github.com/repos/framgia/ecommerce_08/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/ecommerce_08/issues/21/comments","statuses_url":"https://api.github.com/repos/framgia/ecommerce_08/statuses/c8ea1dd6e6c60cb95e716341f37442f82396a18b","head":{"label":"nguyenthaiphuongframgia:two_lis_product","ref":"two_lis_product","sha":"c8ea1dd6e6c60cb95e716341f37442f82396a18b","user":{"login":"nguyenthaiphuongframgia","id":24314210,"avatar_url":"https://avatars.githubusercontent.com/u/24314210?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenthaiphuongframgia","html_url":"https://github.com/nguyenthaiphuongframgia","followers_url":"https://api.github.com/users/nguyenthaiphuongframgia/followers","following_url":"https://api.github.com/users/nguyenthaiphuongframgia/following{/other_user}","gists_url":"https://api.github.com/users/nguyenthaiphuongframgia/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenthaiphuongframgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenthaiphuongframgia/subscriptions","organizations_url":"https://api.github.com/users/nguyenthaiphuongframgia/orgs","repos_url":"https://api.github.com/users/nguyenthaiphuongframgia/repos","events_url":"https://api.github.com/users/nguyenthaiphuongframgia/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenthaiphuongframgia/received_events","type":"User","site_admin":false},"repo":{"id":76546189,"name":"ecommerce_08","full_name":"nguyenthaiphuongframgia/ecommerce_08","owner":{"login":"nguyenthaiphuongframgia","id":24314210,"avatar_url":"https://avatars.githubusercontent.com/u/24314210?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenthaiphuongframgia","html_url":"https://github.com/nguyenthaiphuongframgia","followers_url":"https://api.github.com/users/nguyenthaiphuongframgia/followers","following_url":"https://api.github.com/users/nguyenthaiphuongframgia/following{/other_user}","gists_url":"https://api.github.com/users/nguyenthaiphuongframgia/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenthaiphuongframgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenthaiphuongframgia/subscriptions","organizations_url":"https://api.github.com/users/nguyenthaiphuongframgia/orgs","repos_url":"https://api.github.com/users/nguyenthaiphuongframgia/repos","events_url":"https://api.github.com/users/nguyenthaiphuongframgia/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenthaiphuongframgia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenthaiphuongframgia/ecommerce_08","description":null,"fork":true,"url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08","forks_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/forks","keys_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/teams","hooks_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/hooks","issue_events_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/events","assignees_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/tags","blobs_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/languages","stargazers_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/stargazers","contributors_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/contributors","subscribers_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/subscribers","subscription_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/subscription","commits_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/merges","archive_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/downloads","issues_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/labels{/name}","releases_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenthaiphuongframgia/ecommerce_08/deployments","created_at":"2016-12-15T09:40:57Z","updated_at":"2016-12-23T06:34:21Z","pushed_at":"2016-12-28T10:37:49Z","git_url":"git://github.com/nguyenthaiphuongframgia/ecommerce_08.git","ssh_url":"git@github.com:nguyenthaiphuongframgia/ecommerce_08.git","clone_url":"https://github.com/nguyenthaiphuongframgia/ecommerce_08.git","svn_url":"https://github.com/nguyenthaiphuongframgia/ecommerce_08","homepage":null,"size":79,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"ebc0338197583aa3e6f15b23ce047cf61cc69a98","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":76533174,"name":"ecommerce_08","full_name":"framgia/ecommerce_08","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/ecommerce_08","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/ecommerce_08","forks_url":"https://api.github.com/repos/framgia/ecommerce_08/forks","keys_url":"https://api.github.com/repos/framgia/ecommerce_08/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/ecommerce_08/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/ecommerce_08/teams","hooks_url":"https://api.github.com/repos/framgia/ecommerce_08/hooks","issue_events_url":"https://api.github.com/repos/framgia/ecommerce_08/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/ecommerce_08/events","assignees_url":"https://api.github.com/repos/framgia/ecommerce_08/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/ecommerce_08/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/ecommerce_08/tags","blobs_url":"https://api.github.com/repos/framgia/ecommerce_08/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/ecommerce_08/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/ecommerce_08/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/ecommerce_08/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/ecommerce_08/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/ecommerce_08/languages","stargazers_url":"https://api.github.com/repos/framgia/ecommerce_08/stargazers","contributors_url":"https://api.github.com/repos/framgia/ecommerce_08/contributors","subscribers_url":"https://api.github.com/repos/framgia/ecommerce_08/subscribers","subscription_url":"https://api.github.com/repos/framgia/ecommerce_08/subscription","commits_url":"https://api.github.com/repos/framgia/ecommerce_08/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/ecommerce_08/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/ecommerce_08/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/ecommerce_08/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/ecommerce_08/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/ecommerce_08/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/ecommerce_08/merges","archive_url":"https://api.github.com/repos/framgia/ecommerce_08/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/ecommerce_08/downloads","issues_url":"https://api.github.com/repos/framgia/ecommerce_08/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/ecommerce_08/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/ecommerce_08/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/ecommerce_08/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/ecommerce_08/labels{/name}","releases_url":"https://api.github.com/repos/framgia/ecommerce_08/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/ecommerce_08/deployments","created_at":"2016-12-15T07:06:13Z","updated_at":"2016-12-15T11:10:39Z","pushed_at":"2016-12-28T12:08:50Z","git_url":"git://github.com/framgia/ecommerce_08.git","ssh_url":"git@github.com:framgia/ecommerce_08.git","clone_url":"https://github.com/framgia/ecommerce_08.git","svn_url":"https://github.com/framgia/ecommerce_08","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":10,"forks":2,"open_issues":10,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/ecommerce_08/pulls/21"},"html":{"href":"https://github.com/framgia/ecommerce_08/pull/21"},"issue":{"href":"https://api.github.com/repos/framgia/ecommerce_08/issues/21"},"comments":{"href":"https://api.github.com/repos/framgia/ecommerce_08/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/ecommerce_08/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/ecommerce_08/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/ecommerce_08/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/ecommerce_08/statuses/c8ea1dd6e6c60cb95e716341f37442f82396a18b"}}}}
{"actor":{"display_login":"dothidiemthao"}}