{"action":"created","comment":{"url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls/comments/76394720","id":76394720,"diff_hunk":"@@ -0,0 +1,19 @@\n+= form_for @dishes do |f|\n+  \n+  .field\n+    = f.label :name\n+    = f.text_field :name\n+  .field\n+    = f.label :price\n+    = f.text_field :price\n+  .field\n+    = f.label :allergy_info\n+    = f.text_area :allergy_info\n+    .field\n+      = f.label :price\n+      = f.text_field :price","path":"app/views/dishes/new.html.haml","position":null,"original_position":14,"commit_id":"ad5cd32e8fb48ffbffa454216016283715772b59","original_commit_id":"80db2d4530a6a4bc3bd02d7d09964939d3532829","user":{"login":"tochman","id":5248170,"avatar_url":"https://avatars.githubusercontent.com/u/5248170?v=3","gravatar_id":"","url":"https://api.github.com/users/tochman","html_url":"https://github.com/tochman","followers_url":"https://api.github.com/users/tochman/followers","following_url":"https://api.github.com/users/tochman/following{/other_user}","gists_url":"https://api.github.com/users/tochman/gists{/gist_id}","starred_url":"https://api.github.com/users/tochman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tochman/subscriptions","organizations_url":"https://api.github.com/users/tochman/orgs","repos_url":"https://api.github.com/users/tochman/repos","events_url":"https://api.github.com/users/tochman/events{/privacy}","received_events_url":"https://api.github.com/users/tochman/received_events","type":"User","site_admin":false},"body":"Redundant? Two fields for :price?","created_at":"2016-08-26T09:57:37Z","updated_at":"2016-08-26T09:57:37Z","html_url":"https://github.com/CraftAcademy/slow_food_online_june/pull/27#discussion_r76394720","pull_request_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls/comments/76394720"},"html":{"href":"https://github.com/CraftAcademy/slow_food_online_june/pull/27#discussion_r76394720"},"pull_request":{"href":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls/27","id":82860887,"html_url":"https://github.com/CraftAcademy/slow_food_online_june/pull/27","diff_url":"https://github.com/CraftAcademy/slow_food_online_june/pull/27.diff","patch_url":"https://github.com/CraftAcademy/slow_food_online_june/pull/27.patch","issue_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/issues/27","number":27,"state":"open","locked":false,"title":"Dish create page","user":{"login":"luciademoja","id":17983955,"avatar_url":"https://avatars.githubusercontent.com/u/17983955?v=3","gravatar_id":"","url":"https://api.github.com/users/luciademoja","html_url":"https://github.com/luciademoja","followers_url":"https://api.github.com/users/luciademoja/followers","following_url":"https://api.github.com/users/luciademoja/following{/other_user}","gists_url":"https://api.github.com/users/luciademoja/gists{/gist_id}","starred_url":"https://api.github.com/users/luciademoja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luciademoja/subscriptions","organizations_url":"https://api.github.com/users/luciademoja/orgs","repos_url":"https://api.github.com/users/luciademoja/repos","events_url":"https://api.github.com/users/luciademoja/events{/privacy}","received_events_url":"https://api.github.com/users/luciademoja/received_events","type":"User","site_admin":false},"body":"PT Story: https://www.pivotaltracker.com/story/show/128658187\r\n\r\n\r\nChanges proposed in this pull request:\r\n- Adds dish class \r\n- Sets name and price as required fields\r\n- Includes optional fields\r\n- Shows error when trying to save without filling in name and price\r\n\r\nWhat I have learned working on this feature:\r\nManage the controller and connect the dots between all the files generated when working with a new model.\r\n\r\n\r\n\r\nScreenshots:\r\n![skarmavbild 2016-08-26 kl 11 49 24](https://cloud.githubusercontent.com/assets/17983955/18001423/3aea31be-6b83-11e6-8b44-7875de908444.png)\r\n\r\n\r\n\r\nReady for review!\r\n","created_at":"2016-08-26T09:50:39Z","updated_at":"2016-08-26T09:57:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b62784bcaafd2beec067f12e03cc66e06b565749","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls/27/commits","review_comments_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls/27/comments","review_comment_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/issues/27/comments","statuses_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/statuses/ad5cd32e8fb48ffbffa454216016283715772b59","head":{"label":"luciademoja:dish_create","ref":"dish_create","sha":"ad5cd32e8fb48ffbffa454216016283715772b59","user":{"login":"luciademoja","id":17983955,"avatar_url":"https://avatars.githubusercontent.com/u/17983955?v=3","gravatar_id":"","url":"https://api.github.com/users/luciademoja","html_url":"https://github.com/luciademoja","followers_url":"https://api.github.com/users/luciademoja/followers","following_url":"https://api.github.com/users/luciademoja/following{/other_user}","gists_url":"https://api.github.com/users/luciademoja/gists{/gist_id}","starred_url":"https://api.github.com/users/luciademoja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luciademoja/subscriptions","organizations_url":"https://api.github.com/users/luciademoja/orgs","repos_url":"https://api.github.com/users/luciademoja/repos","events_url":"https://api.github.com/users/luciademoja/events{/privacy}","received_events_url":"https://api.github.com/users/luciademoja/received_events","type":"User","site_admin":false},"repo":{"id":65887231,"name":"slow_food_online_june","full_name":"luciademoja/slow_food_online_june","owner":{"login":"luciademoja","id":17983955,"avatar_url":"https://avatars.githubusercontent.com/u/17983955?v=3","gravatar_id":"","url":"https://api.github.com/users/luciademoja","html_url":"https://github.com/luciademoja","followers_url":"https://api.github.com/users/luciademoja/followers","following_url":"https://api.github.com/users/luciademoja/following{/other_user}","gists_url":"https://api.github.com/users/luciademoja/gists{/gist_id}","starred_url":"https://api.github.com/users/luciademoja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luciademoja/subscriptions","organizations_url":"https://api.github.com/users/luciademoja/orgs","repos_url":"https://api.github.com/users/luciademoja/repos","events_url":"https://api.github.com/users/luciademoja/events{/privacy}","received_events_url":"https://api.github.com/users/luciademoja/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luciademoja/slow_food_online_june","description":"Craft Academy Bootcamp Week 8-9 Challenge","fork":true,"url":"https://api.github.com/repos/luciademoja/slow_food_online_june","forks_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/forks","keys_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/teams","hooks_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/hooks","issue_events_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/issues/events{/number}","events_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/events","assignees_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/assignees{/user}","branches_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/branches{/branch}","tags_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/tags","blobs_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/git/refs{/sha}","trees_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/statuses/{sha}","languages_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/languages","stargazers_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/stargazers","contributors_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/contributors","subscribers_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/subscribers","subscription_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/subscription","commits_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/commits{/sha}","git_commits_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/git/commits{/sha}","comments_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/comments{/number}","issue_comment_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/issues/comments{/number}","contents_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/contents/{+path}","compare_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/merges","archive_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/downloads","issues_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/issues{/number}","pulls_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/pulls{/number}","milestones_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/milestones{/number}","notifications_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/labels{/name}","releases_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/releases{/id}","deployments_url":"https://api.github.com/repos/luciademoja/slow_food_online_june/deployments","created_at":"2016-08-17T07:47:58Z","updated_at":"2016-08-17T07:33:05Z","pushed_at":"2016-08-26T09:37:53Z","git_url":"git://github.com/luciademoja/slow_food_online_june.git","ssh_url":"git@github.com:luciademoja/slow_food_online_june.git","clone_url":"https://github.com/luciademoja/slow_food_online_june.git","svn_url":"https://github.com/luciademoja/slow_food_online_june","homepage":null,"size":226,"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":"CraftAcademy:develop","ref":"develop","sha":"e645cd53ae3b87b12dddd2e4813a1752910ffcdf","user":{"login":"CraftAcademy","id":12081851,"avatar_url":"https://avatars.githubusercontent.com/u/12081851?v=3","gravatar_id":"","url":"https://api.github.com/users/CraftAcademy","html_url":"https://github.com/CraftAcademy","followers_url":"https://api.github.com/users/CraftAcademy/followers","following_url":"https://api.github.com/users/CraftAcademy/following{/other_user}","gists_url":"https://api.github.com/users/CraftAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/CraftAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CraftAcademy/subscriptions","organizations_url":"https://api.github.com/users/CraftAcademy/orgs","repos_url":"https://api.github.com/users/CraftAcademy/repos","events_url":"https://api.github.com/users/CraftAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/CraftAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":65886209,"name":"slow_food_online_june","full_name":"CraftAcademy/slow_food_online_june","owner":{"login":"CraftAcademy","id":12081851,"avatar_url":"https://avatars.githubusercontent.com/u/12081851?v=3","gravatar_id":"","url":"https://api.github.com/users/CraftAcademy","html_url":"https://github.com/CraftAcademy","followers_url":"https://api.github.com/users/CraftAcademy/followers","following_url":"https://api.github.com/users/CraftAcademy/following{/other_user}","gists_url":"https://api.github.com/users/CraftAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/CraftAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CraftAcademy/subscriptions","organizations_url":"https://api.github.com/users/CraftAcademy/orgs","repos_url":"https://api.github.com/users/CraftAcademy/repos","events_url":"https://api.github.com/users/CraftAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/CraftAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CraftAcademy/slow_food_online_june","description":"Craft Academy Bootcamp Week 8-9 Challenge","fork":false,"url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june","forks_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/forks","keys_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/teams","hooks_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/hooks","issue_events_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/issues/events{/number}","events_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/events","assignees_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/assignees{/user}","branches_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/branches{/branch}","tags_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/tags","blobs_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/git/refs{/sha}","trees_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/statuses/{sha}","languages_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/languages","stargazers_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/stargazers","contributors_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/contributors","subscribers_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/subscribers","subscription_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/subscription","commits_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/commits{/sha}","git_commits_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/git/commits{/sha}","comments_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/comments{/number}","issue_comment_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/issues/comments{/number}","contents_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/contents/{+path}","compare_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/merges","archive_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/downloads","issues_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/issues{/number}","pulls_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls{/number}","milestones_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/milestones{/number}","notifications_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/labels{/name}","releases_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/releases{/id}","deployments_url":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/deployments","created_at":"2016-08-17T07:33:05Z","updated_at":"2016-08-25T12:37:10Z","pushed_at":"2016-08-26T09:55:20Z","git_url":"git://github.com/CraftAcademy/slow_food_online_june.git","ssh_url":"git@github.com:CraftAcademy/slow_food_online_june.git","clone_url":"https://github.com/CraftAcademy/slow_food_online_june.git","svn_url":"https://github.com/CraftAcademy/slow_food_online_june","homepage":null,"size":301,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":3,"forks":7,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls/27"},"html":{"href":"https://github.com/CraftAcademy/slow_food_online_june/pull/27"},"issue":{"href":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/issues/27"},"comments":{"href":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/CraftAcademy/slow_food_online_june/statuses/ad5cd32e8fb48ffbffa454216016283715772b59"}}}}
{"actor":{"display_login":"tochman"}}