{"action":"created","comment":{"url":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls/comments/40211966","id":40211966,"diff_hunk":"@@ -0,0 +1,16 @@\n+<h1>Add a new product!</h1>\n+<%= form_for @product do |f| %>\n+  <%= f.label :title %>\n+  <%= f.text_field :title %>\n+  <%= f.label :brand_id %>\n+  <%= f.collection_select :brand_id, Brand.all, :id, :name %>\n+  <!-- <%= f.text_area :brand_id %> -->\n+  <%= f.label :category_id %>\n+  <%= f.collection_select :category_id, Category.all, :id, :name %>\n+  <!-- <%= f.text_area :category_id %> -->\n+  <%= f.label :description %>\n+  <%= f.text_area :description %>\n+  <%= f.submit \"Add Product\", class: \"button radius\" %>\n+<% end %>","path":"app/views/products/new.html.erb","position":14,"original_position":14,"commit_id":"8d25339675d6955f9c8d3f2cc7fc85b693b2e275","original_commit_id":"8d25339675d6955f9c8d3f2cc7fc85b693b2e275","user":{"login":"cmkoller","id":8670086,"avatar_url":"https://avatars.githubusercontent.com/u/8670086?v=3","gravatar_id":"","url":"https://api.github.com/users/cmkoller","html_url":"https://github.com/cmkoller","followers_url":"https://api.github.com/users/cmkoller/followers","following_url":"https://api.github.com/users/cmkoller/following{/other_user}","gists_url":"https://api.github.com/users/cmkoller/gists{/gist_id}","starred_url":"https://api.github.com/users/cmkoller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmkoller/subscriptions","organizations_url":"https://api.github.com/users/cmkoller/orgs","repos_url":"https://api.github.com/users/cmkoller/repos","events_url":"https://api.github.com/users/cmkoller/events{/privacy}","received_events_url":"https://api.github.com/users/cmkoller/received_events","type":"User","site_admin":false},"body":"This form looks the same as the one above - break them both out into a partial!","created_at":"2015-09-23T14:48:00Z","updated_at":"2015-09-23T14:48:00Z","html_url":"https://github.com/justinhuynh/does-it-fit/pull/8#discussion_r40211966","pull_request_url":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls/comments/40211966"},"html":{"href":"https://github.com/justinhuynh/does-it-fit/pull/8#discussion_r40211966"},"pull_request":{"href":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls/8","id":45720631,"html_url":"https://github.com/justinhuynh/does-it-fit/pull/8","diff_url":"https://github.com/justinhuynh/does-it-fit/pull/8.diff","patch_url":"https://github.com/justinhuynh/does-it-fit/pull/8.patch","issue_url":"https://api.github.com/repos/justinhuynh/does-it-fit/issues/8","number":8,"state":"open","locked":false,"title":"Create products","user":{"login":"EricJZell","id":12786147,"avatar_url":"https://avatars.githubusercontent.com/u/12786147?v=3","gravatar_id":"","url":"https://api.github.com/users/EricJZell","html_url":"https://github.com/EricJZell","followers_url":"https://api.github.com/users/EricJZell/followers","following_url":"https://api.github.com/users/EricJZell/following{/other_user}","gists_url":"https://api.github.com/users/EricJZell/gists{/gist_id}","starred_url":"https://api.github.com/users/EricJZell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricJZell/subscriptions","organizations_url":"https://api.github.com/users/EricJZell/orgs","repos_url":"https://api.github.com/users/EricJZell/repos","events_url":"https://api.github.com/users/EricJZell/events{/privacy}","received_events_url":"https://api.github.com/users/EricJZell/received_events","type":"User","site_admin":false},"body":"Create CRUD functionality for products with acceptance tests","created_at":"2015-09-22T21:40:04Z","updated_at":"2015-09-23T14:48:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9db7c3300bfbe9492041a9eb4d903f5aaeb3032","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls/8/commits","review_comments_url":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls/8/comments","review_comment_url":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/justinhuynh/does-it-fit/issues/8/comments","statuses_url":"https://api.github.com/repos/justinhuynh/does-it-fit/statuses/8d25339675d6955f9c8d3f2cc7fc85b693b2e275","head":{"label":"justinhuynh:create-products","ref":"create-products","sha":"8d25339675d6955f9c8d3f2cc7fc85b693b2e275","user":{"login":"justinhuynh","id":8738301,"avatar_url":"https://avatars.githubusercontent.com/u/8738301?v=3","gravatar_id":"","url":"https://api.github.com/users/justinhuynh","html_url":"https://github.com/justinhuynh","followers_url":"https://api.github.com/users/justinhuynh/followers","following_url":"https://api.github.com/users/justinhuynh/following{/other_user}","gists_url":"https://api.github.com/users/justinhuynh/gists{/gist_id}","starred_url":"https://api.github.com/users/justinhuynh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinhuynh/subscriptions","organizations_url":"https://api.github.com/users/justinhuynh/orgs","repos_url":"https://api.github.com/users/justinhuynh/repos","events_url":"https://api.github.com/users/justinhuynh/events{/privacy}","received_events_url":"https://api.github.com/users/justinhuynh/received_events","type":"User","site_admin":false},"repo":{"id":42871453,"name":"does-it-fit","full_name":"justinhuynh/does-it-fit","owner":{"login":"justinhuynh","id":8738301,"avatar_url":"https://avatars.githubusercontent.com/u/8738301?v=3","gravatar_id":"","url":"https://api.github.com/users/justinhuynh","html_url":"https://github.com/justinhuynh","followers_url":"https://api.github.com/users/justinhuynh/followers","following_url":"https://api.github.com/users/justinhuynh/following{/other_user}","gists_url":"https://api.github.com/users/justinhuynh/gists{/gist_id}","starred_url":"https://api.github.com/users/justinhuynh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinhuynh/subscriptions","organizations_url":"https://api.github.com/users/justinhuynh/orgs","repos_url":"https://api.github.com/users/justinhuynh/repos","events_url":"https://api.github.com/users/justinhuynh/events{/privacy}","received_events_url":"https://api.github.com/users/justinhuynh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/justinhuynh/does-it-fit","description":"","fork":false,"url":"https://api.github.com/repos/justinhuynh/does-it-fit","forks_url":"https://api.github.com/repos/justinhuynh/does-it-fit/forks","keys_url":"https://api.github.com/repos/justinhuynh/does-it-fit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/justinhuynh/does-it-fit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/justinhuynh/does-it-fit/teams","hooks_url":"https://api.github.com/repos/justinhuynh/does-it-fit/hooks","issue_events_url":"https://api.github.com/repos/justinhuynh/does-it-fit/issues/events{/number}","events_url":"https://api.github.com/repos/justinhuynh/does-it-fit/events","assignees_url":"https://api.github.com/repos/justinhuynh/does-it-fit/assignees{/user}","branches_url":"https://api.github.com/repos/justinhuynh/does-it-fit/branches{/branch}","tags_url":"https://api.github.com/repos/justinhuynh/does-it-fit/tags","blobs_url":"https://api.github.com/repos/justinhuynh/does-it-fit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/justinhuynh/does-it-fit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/justinhuynh/does-it-fit/git/refs{/sha}","trees_url":"https://api.github.com/repos/justinhuynh/does-it-fit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/justinhuynh/does-it-fit/statuses/{sha}","languages_url":"https://api.github.com/repos/justinhuynh/does-it-fit/languages","stargazers_url":"https://api.github.com/repos/justinhuynh/does-it-fit/stargazers","contributors_url":"https://api.github.com/repos/justinhuynh/does-it-fit/contributors","subscribers_url":"https://api.github.com/repos/justinhuynh/does-it-fit/subscribers","subscription_url":"https://api.github.com/repos/justinhuynh/does-it-fit/subscription","commits_url":"https://api.github.com/repos/justinhuynh/does-it-fit/commits{/sha}","git_commits_url":"https://api.github.com/repos/justinhuynh/does-it-fit/git/commits{/sha}","comments_url":"https://api.github.com/repos/justinhuynh/does-it-fit/comments{/number}","issue_comment_url":"https://api.github.com/repos/justinhuynh/does-it-fit/issues/comments{/number}","contents_url":"https://api.github.com/repos/justinhuynh/does-it-fit/contents/{+path}","compare_url":"https://api.github.com/repos/justinhuynh/does-it-fit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/justinhuynh/does-it-fit/merges","archive_url":"https://api.github.com/repos/justinhuynh/does-it-fit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/justinhuynh/does-it-fit/downloads","issues_url":"https://api.github.com/repos/justinhuynh/does-it-fit/issues{/number}","pulls_url":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls{/number}","milestones_url":"https://api.github.com/repos/justinhuynh/does-it-fit/milestones{/number}","notifications_url":"https://api.github.com/repos/justinhuynh/does-it-fit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/justinhuynh/does-it-fit/labels{/name}","releases_url":"https://api.github.com/repos/justinhuynh/does-it-fit/releases{/id}","created_at":"2015-09-21T14:31:39Z","updated_at":"2015-09-22T18:36:24Z","pushed_at":"2015-09-23T14:40:54Z","git_url":"git://github.com/justinhuynh/does-it-fit.git","ssh_url":"git@github.com:justinhuynh/does-it-fit.git","clone_url":"https://github.com/justinhuynh/does-it-fit.git","svn_url":"https://github.com/justinhuynh/does-it-fit","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"justinhuynh:master","ref":"master","sha":"8cfa44a5aef5888efe551a3241fb4ef0db1e6837","user":{"login":"justinhuynh","id":8738301,"avatar_url":"https://avatars.githubusercontent.com/u/8738301?v=3","gravatar_id":"","url":"https://api.github.com/users/justinhuynh","html_url":"https://github.com/justinhuynh","followers_url":"https://api.github.com/users/justinhuynh/followers","following_url":"https://api.github.com/users/justinhuynh/following{/other_user}","gists_url":"https://api.github.com/users/justinhuynh/gists{/gist_id}","starred_url":"https://api.github.com/users/justinhuynh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinhuynh/subscriptions","organizations_url":"https://api.github.com/users/justinhuynh/orgs","repos_url":"https://api.github.com/users/justinhuynh/repos","events_url":"https://api.github.com/users/justinhuynh/events{/privacy}","received_events_url":"https://api.github.com/users/justinhuynh/received_events","type":"User","site_admin":false},"repo":{"id":42871453,"name":"does-it-fit","full_name":"justinhuynh/does-it-fit","owner":{"login":"justinhuynh","id":8738301,"avatar_url":"https://avatars.githubusercontent.com/u/8738301?v=3","gravatar_id":"","url":"https://api.github.com/users/justinhuynh","html_url":"https://github.com/justinhuynh","followers_url":"https://api.github.com/users/justinhuynh/followers","following_url":"https://api.github.com/users/justinhuynh/following{/other_user}","gists_url":"https://api.github.com/users/justinhuynh/gists{/gist_id}","starred_url":"https://api.github.com/users/justinhuynh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinhuynh/subscriptions","organizations_url":"https://api.github.com/users/justinhuynh/orgs","repos_url":"https://api.github.com/users/justinhuynh/repos","events_url":"https://api.github.com/users/justinhuynh/events{/privacy}","received_events_url":"https://api.github.com/users/justinhuynh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/justinhuynh/does-it-fit","description":"","fork":false,"url":"https://api.github.com/repos/justinhuynh/does-it-fit","forks_url":"https://api.github.com/repos/justinhuynh/does-it-fit/forks","keys_url":"https://api.github.com/repos/justinhuynh/does-it-fit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/justinhuynh/does-it-fit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/justinhuynh/does-it-fit/teams","hooks_url":"https://api.github.com/repos/justinhuynh/does-it-fit/hooks","issue_events_url":"https://api.github.com/repos/justinhuynh/does-it-fit/issues/events{/number}","events_url":"https://api.github.com/repos/justinhuynh/does-it-fit/events","assignees_url":"https://api.github.com/repos/justinhuynh/does-it-fit/assignees{/user}","branches_url":"https://api.github.com/repos/justinhuynh/does-it-fit/branches{/branch}","tags_url":"https://api.github.com/repos/justinhuynh/does-it-fit/tags","blobs_url":"https://api.github.com/repos/justinhuynh/does-it-fit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/justinhuynh/does-it-fit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/justinhuynh/does-it-fit/git/refs{/sha}","trees_url":"https://api.github.com/repos/justinhuynh/does-it-fit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/justinhuynh/does-it-fit/statuses/{sha}","languages_url":"https://api.github.com/repos/justinhuynh/does-it-fit/languages","stargazers_url":"https://api.github.com/repos/justinhuynh/does-it-fit/stargazers","contributors_url":"https://api.github.com/repos/justinhuynh/does-it-fit/contributors","subscribers_url":"https://api.github.com/repos/justinhuynh/does-it-fit/subscribers","subscription_url":"https://api.github.com/repos/justinhuynh/does-it-fit/subscription","commits_url":"https://api.github.com/repos/justinhuynh/does-it-fit/commits{/sha}","git_commits_url":"https://api.github.com/repos/justinhuynh/does-it-fit/git/commits{/sha}","comments_url":"https://api.github.com/repos/justinhuynh/does-it-fit/comments{/number}","issue_comment_url":"https://api.github.com/repos/justinhuynh/does-it-fit/issues/comments{/number}","contents_url":"https://api.github.com/repos/justinhuynh/does-it-fit/contents/{+path}","compare_url":"https://api.github.com/repos/justinhuynh/does-it-fit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/justinhuynh/does-it-fit/merges","archive_url":"https://api.github.com/repos/justinhuynh/does-it-fit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/justinhuynh/does-it-fit/downloads","issues_url":"https://api.github.com/repos/justinhuynh/does-it-fit/issues{/number}","pulls_url":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls{/number}","milestones_url":"https://api.github.com/repos/justinhuynh/does-it-fit/milestones{/number}","notifications_url":"https://api.github.com/repos/justinhuynh/does-it-fit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/justinhuynh/does-it-fit/labels{/name}","releases_url":"https://api.github.com/repos/justinhuynh/does-it-fit/releases{/id}","created_at":"2015-09-21T14:31:39Z","updated_at":"2015-09-22T18:36:24Z","pushed_at":"2015-09-23T14:40:54Z","git_url":"git://github.com/justinhuynh/does-it-fit.git","ssh_url":"git@github.com:justinhuynh/does-it-fit.git","clone_url":"https://github.com/justinhuynh/does-it-fit.git","svn_url":"https://github.com/justinhuynh/does-it-fit","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls/8"},"html":{"href":"https://github.com/justinhuynh/does-it-fit/pull/8"},"issue":{"href":"https://api.github.com/repos/justinhuynh/does-it-fit/issues/8"},"comments":{"href":"https://api.github.com/repos/justinhuynh/does-it-fit/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/justinhuynh/does-it-fit/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/justinhuynh/does-it-fit/statuses/8d25339675d6955f9c8d3f2cc7fc85b693b2e275"}}}}