{"action":"created","comment":{"url":"https://api.github.com/repos/hailexiao/metayelp/pulls/comments/40335926","id":40335926,"diff_hunk":"@@ -0,0 +1,12 @@\n+<div class=\"large-12\">\n+\n+  <%= form_for [@yelper, @review] do |f| %>\n+    <%= f.label :rating %>\n+    <%= f.number_field :rating, in: 1...6 %>","path":"app/views/yelpers/_form.html.erb","position":5,"original_position":5,"commit_id":"04229f6d14fe24b52d4fff7dded8215e8e11b4a5","original_commit_id":"04229f6d14fe24b52d4fff7dded8215e8e11b4a5","user":{"login":"radavis","id":1299034,"avatar_url":"https://avatars.githubusercontent.com/u/1299034?v=3","gravatar_id":"","url":"https://api.github.com/users/radavis","html_url":"https://github.com/radavis","followers_url":"https://api.github.com/users/radavis/followers","following_url":"https://api.github.com/users/radavis/following{/other_user}","gists_url":"https://api.github.com/users/radavis/gists{/gist_id}","starred_url":"https://api.github.com/users/radavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radavis/subscriptions","organizations_url":"https://api.github.com/users/radavis/orgs","repos_url":"https://api.github.com/users/radavis/repos","events_url":"https://api.github.com/users/radavis/events{/privacy}","received_events_url":"https://api.github.com/users/radavis/received_events","type":"User","site_admin":false},"body":"This clashes with what is defined in the Review model.\r\n\r\nCreate an array in the Reviews model and use it in your validations and here:\r\n\r\n`Reviews::RATINGS`\r\n\r\n```\r\nclass Reviews\r\n  RATINGS = [1, 2, 3, 4, 5]\r\n\r\n  validates :rating, inclusion: in: { RATINGS }\r\nend\r\n```","created_at":"2015-09-24T15:53:56Z","updated_at":"2015-09-24T15:53:56Z","html_url":"https://github.com/hailexiao/metayelp/pull/9#discussion_r40335926","pull_request_url":"https://api.github.com/repos/hailexiao/metayelp/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/hailexiao/metayelp/pulls/comments/40335926"},"html":{"href":"https://github.com/hailexiao/metayelp/pull/9#discussion_r40335926"},"pull_request":{"href":"https://api.github.com/repos/hailexiao/metayelp/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/hailexiao/metayelp/pulls/9","id":45913531,"html_url":"https://github.com/hailexiao/metayelp/pull/9","diff_url":"https://github.com/hailexiao/metayelp/pull/9.diff","patch_url":"https://github.com/hailexiao/metayelp/pull/9.patch","issue_url":"https://api.github.com/repos/hailexiao/metayelp/issues/9","number":9,"state":"open","locked":false,"title":"Add a review user story","user":{"login":"brendanboyle87","id":1395328,"avatar_url":"https://avatars.githubusercontent.com/u/1395328?v=3","gravatar_id":"","url":"https://api.github.com/users/brendanboyle87","html_url":"https://github.com/brendanboyle87","followers_url":"https://api.github.com/users/brendanboyle87/followers","following_url":"https://api.github.com/users/brendanboyle87/following{/other_user}","gists_url":"https://api.github.com/users/brendanboyle87/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanboyle87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanboyle87/subscriptions","organizations_url":"https://api.github.com/users/brendanboyle87/orgs","repos_url":"https://api.github.com/users/brendanboyle87/repos","events_url":"https://api.github.com/users/brendanboyle87/events{/privacy}","received_events_url":"https://api.github.com/users/brendanboyle87/received_events","type":"User","site_admin":false},"body":"Created the add a review form on the Yelper show page and made the ReviewsController.  \r\nChanged the data type of rating to string for easier use of params. \r\nAlso, deleted the javascript portion of our feature tests.","created_at":"2015-09-24T15:43:47Z","updated_at":"2015-09-24T15:53:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"777c0f90054ec02e99a612b1e7c67cb206af5df8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hailexiao/metayelp/pulls/9/commits","review_comments_url":"https://api.github.com/repos/hailexiao/metayelp/pulls/9/comments","review_comment_url":"https://api.github.com/repos/hailexiao/metayelp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hailexiao/metayelp/issues/9/comments","statuses_url":"https://api.github.com/repos/hailexiao/metayelp/statuses/04229f6d14fe24b52d4fff7dded8215e8e11b4a5","head":{"label":"hailexiao:add-reviews","ref":"add-reviews","sha":"04229f6d14fe24b52d4fff7dded8215e8e11b4a5","user":{"login":"hailexiao","id":10236227,"avatar_url":"https://avatars.githubusercontent.com/u/10236227?v=3","gravatar_id":"","url":"https://api.github.com/users/hailexiao","html_url":"https://github.com/hailexiao","followers_url":"https://api.github.com/users/hailexiao/followers","following_url":"https://api.github.com/users/hailexiao/following{/other_user}","gists_url":"https://api.github.com/users/hailexiao/gists{/gist_id}","starred_url":"https://api.github.com/users/hailexiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hailexiao/subscriptions","organizations_url":"https://api.github.com/users/hailexiao/orgs","repos_url":"https://api.github.com/users/hailexiao/repos","events_url":"https://api.github.com/users/hailexiao/events{/privacy}","received_events_url":"https://api.github.com/users/hailexiao/received_events","type":"User","site_admin":false},"repo":{"id":42876313,"name":"metayelp","full_name":"hailexiao/metayelp","owner":{"login":"hailexiao","id":10236227,"avatar_url":"https://avatars.githubusercontent.com/u/10236227?v=3","gravatar_id":"","url":"https://api.github.com/users/hailexiao","html_url":"https://github.com/hailexiao","followers_url":"https://api.github.com/users/hailexiao/followers","following_url":"https://api.github.com/users/hailexiao/following{/other_user}","gists_url":"https://api.github.com/users/hailexiao/gists{/gist_id}","starred_url":"https://api.github.com/users/hailexiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hailexiao/subscriptions","organizations_url":"https://api.github.com/users/hailexiao/orgs","repos_url":"https://api.github.com/users/hailexiao/repos","events_url":"https://api.github.com/users/hailexiao/events{/privacy}","received_events_url":"https://api.github.com/users/hailexiao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hailexiao/metayelp","description":"A web application for reviewing Yelpers","fork":false,"url":"https://api.github.com/repos/hailexiao/metayelp","forks_url":"https://api.github.com/repos/hailexiao/metayelp/forks","keys_url":"https://api.github.com/repos/hailexiao/metayelp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hailexiao/metayelp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hailexiao/metayelp/teams","hooks_url":"https://api.github.com/repos/hailexiao/metayelp/hooks","issue_events_url":"https://api.github.com/repos/hailexiao/metayelp/issues/events{/number}","events_url":"https://api.github.com/repos/hailexiao/metayelp/events","assignees_url":"https://api.github.com/repos/hailexiao/metayelp/assignees{/user}","branches_url":"https://api.github.com/repos/hailexiao/metayelp/branches{/branch}","tags_url":"https://api.github.com/repos/hailexiao/metayelp/tags","blobs_url":"https://api.github.com/repos/hailexiao/metayelp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hailexiao/metayelp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hailexiao/metayelp/git/refs{/sha}","trees_url":"https://api.github.com/repos/hailexiao/metayelp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hailexiao/metayelp/statuses/{sha}","languages_url":"https://api.github.com/repos/hailexiao/metayelp/languages","stargazers_url":"https://api.github.com/repos/hailexiao/metayelp/stargazers","contributors_url":"https://api.github.com/repos/hailexiao/metayelp/contributors","subscribers_url":"https://api.github.com/repos/hailexiao/metayelp/subscribers","subscription_url":"https://api.github.com/repos/hailexiao/metayelp/subscription","commits_url":"https://api.github.com/repos/hailexiao/metayelp/commits{/sha}","git_commits_url":"https://api.github.com/repos/hailexiao/metayelp/git/commits{/sha}","comments_url":"https://api.github.com/repos/hailexiao/metayelp/comments{/number}","issue_comment_url":"https://api.github.com/repos/hailexiao/metayelp/issues/comments{/number}","contents_url":"https://api.github.com/repos/hailexiao/metayelp/contents/{+path}","compare_url":"https://api.github.com/repos/hailexiao/metayelp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hailexiao/metayelp/merges","archive_url":"https://api.github.com/repos/hailexiao/metayelp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hailexiao/metayelp/downloads","issues_url":"https://api.github.com/repos/hailexiao/metayelp/issues{/number}","pulls_url":"https://api.github.com/repos/hailexiao/metayelp/pulls{/number}","milestones_url":"https://api.github.com/repos/hailexiao/metayelp/milestones{/number}","notifications_url":"https://api.github.com/repos/hailexiao/metayelp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hailexiao/metayelp/labels{/name}","releases_url":"https://api.github.com/repos/hailexiao/metayelp/releases{/id}","created_at":"2015-09-21T15:47:45Z","updated_at":"2015-09-23T18:55:38Z","pushed_at":"2015-09-24T15:49:09Z","git_url":"git://github.com/hailexiao/metayelp.git","ssh_url":"git@github.com:hailexiao/metayelp.git","clone_url":"https://github.com/hailexiao/metayelp.git","svn_url":"https://github.com/hailexiao/metayelp","homepage":null,"size":788,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hailexiao:master","ref":"master","sha":"0aa516efa584fc9fdb7578a491ebb307713c2655","user":{"login":"hailexiao","id":10236227,"avatar_url":"https://avatars.githubusercontent.com/u/10236227?v=3","gravatar_id":"","url":"https://api.github.com/users/hailexiao","html_url":"https://github.com/hailexiao","followers_url":"https://api.github.com/users/hailexiao/followers","following_url":"https://api.github.com/users/hailexiao/following{/other_user}","gists_url":"https://api.github.com/users/hailexiao/gists{/gist_id}","starred_url":"https://api.github.com/users/hailexiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hailexiao/subscriptions","organizations_url":"https://api.github.com/users/hailexiao/orgs","repos_url":"https://api.github.com/users/hailexiao/repos","events_url":"https://api.github.com/users/hailexiao/events{/privacy}","received_events_url":"https://api.github.com/users/hailexiao/received_events","type":"User","site_admin":false},"repo":{"id":42876313,"name":"metayelp","full_name":"hailexiao/metayelp","owner":{"login":"hailexiao","id":10236227,"avatar_url":"https://avatars.githubusercontent.com/u/10236227?v=3","gravatar_id":"","url":"https://api.github.com/users/hailexiao","html_url":"https://github.com/hailexiao","followers_url":"https://api.github.com/users/hailexiao/followers","following_url":"https://api.github.com/users/hailexiao/following{/other_user}","gists_url":"https://api.github.com/users/hailexiao/gists{/gist_id}","starred_url":"https://api.github.com/users/hailexiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hailexiao/subscriptions","organizations_url":"https://api.github.com/users/hailexiao/orgs","repos_url":"https://api.github.com/users/hailexiao/repos","events_url":"https://api.github.com/users/hailexiao/events{/privacy}","received_events_url":"https://api.github.com/users/hailexiao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hailexiao/metayelp","description":"A web application for reviewing Yelpers","fork":false,"url":"https://api.github.com/repos/hailexiao/metayelp","forks_url":"https://api.github.com/repos/hailexiao/metayelp/forks","keys_url":"https://api.github.com/repos/hailexiao/metayelp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hailexiao/metayelp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hailexiao/metayelp/teams","hooks_url":"https://api.github.com/repos/hailexiao/metayelp/hooks","issue_events_url":"https://api.github.com/repos/hailexiao/metayelp/issues/events{/number}","events_url":"https://api.github.com/repos/hailexiao/metayelp/events","assignees_url":"https://api.github.com/repos/hailexiao/metayelp/assignees{/user}","branches_url":"https://api.github.com/repos/hailexiao/metayelp/branches{/branch}","tags_url":"https://api.github.com/repos/hailexiao/metayelp/tags","blobs_url":"https://api.github.com/repos/hailexiao/metayelp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hailexiao/metayelp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hailexiao/metayelp/git/refs{/sha}","trees_url":"https://api.github.com/repos/hailexiao/metayelp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hailexiao/metayelp/statuses/{sha}","languages_url":"https://api.github.com/repos/hailexiao/metayelp/languages","stargazers_url":"https://api.github.com/repos/hailexiao/metayelp/stargazers","contributors_url":"https://api.github.com/repos/hailexiao/metayelp/contributors","subscribers_url":"https://api.github.com/repos/hailexiao/metayelp/subscribers","subscription_url":"https://api.github.com/repos/hailexiao/metayelp/subscription","commits_url":"https://api.github.com/repos/hailexiao/metayelp/commits{/sha}","git_commits_url":"https://api.github.com/repos/hailexiao/metayelp/git/commits{/sha}","comments_url":"https://api.github.com/repos/hailexiao/metayelp/comments{/number}","issue_comment_url":"https://api.github.com/repos/hailexiao/metayelp/issues/comments{/number}","contents_url":"https://api.github.com/repos/hailexiao/metayelp/contents/{+path}","compare_url":"https://api.github.com/repos/hailexiao/metayelp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hailexiao/metayelp/merges","archive_url":"https://api.github.com/repos/hailexiao/metayelp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hailexiao/metayelp/downloads","issues_url":"https://api.github.com/repos/hailexiao/metayelp/issues{/number}","pulls_url":"https://api.github.com/repos/hailexiao/metayelp/pulls{/number}","milestones_url":"https://api.github.com/repos/hailexiao/metayelp/milestones{/number}","notifications_url":"https://api.github.com/repos/hailexiao/metayelp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hailexiao/metayelp/labels{/name}","releases_url":"https://api.github.com/repos/hailexiao/metayelp/releases{/id}","created_at":"2015-09-21T15:47:45Z","updated_at":"2015-09-23T18:55:38Z","pushed_at":"2015-09-24T15:49:09Z","git_url":"git://github.com/hailexiao/metayelp.git","ssh_url":"git@github.com:hailexiao/metayelp.git","clone_url":"https://github.com/hailexiao/metayelp.git","svn_url":"https://github.com/hailexiao/metayelp","homepage":null,"size":788,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hailexiao/metayelp/pulls/9"},"html":{"href":"https://github.com/hailexiao/metayelp/pull/9"},"issue":{"href":"https://api.github.com/repos/hailexiao/metayelp/issues/9"},"comments":{"href":"https://api.github.com/repos/hailexiao/metayelp/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/hailexiao/metayelp/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/hailexiao/metayelp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hailexiao/metayelp/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/hailexiao/metayelp/statuses/04229f6d14fe24b52d4fff7dded8215e8e11b4a5"}}}}