{"action":"created","comment":{"url":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls/comments/80935151","pull_request_review_id":1952742,"id":80935151,"diff_hunk":"@@ -1,5 +1,8 @@\n Rails.application.routes.draw do\n   get '/restaurant', controller: :restaurant, action: :index\n+\n+  resources :dishes","path":"config/routes.rb","position":null,"original_position":4,"commit_id":"1dd426412b941750a2b08feab7e00d3449ee49f3","original_commit_id":"0a5cbdc54bcd4d0e7f2e187854730e8a16041650","user":{"login":"AmberWilkie","id":20141428,"avatar_url":"https://avatars.githubusercontent.com/u/20141428?v=3","gravatar_id":"","url":"https://api.github.com/users/AmberWilkie","html_url":"https://github.com/AmberWilkie","followers_url":"https://api.github.com/users/AmberWilkie/followers","following_url":"https://api.github.com/users/AmberWilkie/following{/other_user}","gists_url":"https://api.github.com/users/AmberWilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/AmberWilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmberWilkie/subscriptions","organizations_url":"https://api.github.com/users/AmberWilkie/orgs","repos_url":"https://api.github.com/users/AmberWilkie/repos","events_url":"https://api.github.com/users/AmberWilkie/events{/privacy}","received_events_url":"https://api.github.com/users/AmberWilkie/received_events","type":"User","site_admin":false},"body":"restricted to next-to-all-routes","created_at":"2016-09-28T14:49:14Z","updated_at":"2016-09-28T14:49:15Z","html_url":"https://github.com/CraftAcademy/sf-online-august/pull/7#discussion_r80935151","pull_request_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls/comments/80935151"},"html":{"href":"https://github.com/CraftAcademy/sf-online-august/pull/7#discussion_r80935151"},"pull_request":{"href":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls/7","id":87132315,"html_url":"https://github.com/CraftAcademy/sf-online-august/pull/7","diff_url":"https://github.com/CraftAcademy/sf-online-august/pull/7.diff","patch_url":"https://github.com/CraftAcademy/sf-online-august/pull/7.patch","issue_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/issues/7","number":7,"state":"open","locked":false,"title":"Create Dishes and display them on Dish pages","user":{"login":"AmberWilkie","id":20141428,"avatar_url":"https://avatars.githubusercontent.com/u/20141428?v=3","gravatar_id":"","url":"https://api.github.com/users/AmberWilkie","html_url":"https://github.com/AmberWilkie","followers_url":"https://api.github.com/users/AmberWilkie/followers","following_url":"https://api.github.com/users/AmberWilkie/following{/other_user}","gists_url":"https://api.github.com/users/AmberWilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/AmberWilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmberWilkie/subscriptions","organizations_url":"https://api.github.com/users/AmberWilkie/orgs","repos_url":"https://api.github.com/users/AmberWilkie/repos","events_url":"https://api.github.com/users/AmberWilkie/events{/privacy}","received_events_url":"https://api.github.com/users/AmberWilkie/received_events","type":"User","site_admin":false},"body":"PT Story: https://www.pivotaltracker.com/story/show/131070277 (and parts of https://www.pivotaltracker.com/story/show/131070519)\r\n\r\nChanges proposed in this pull request:\r\nCreate Dish model\r\nRoute to Dish model functions: new, create, show (and others we're not using yet)\r\nDish views: new and show\r\n\r\nWhat I have learned working on this feature: Strengthening model-controller-view understanding (just through repetition, really). We re-learned a number of features, like using flash messages with error handling. We also learned that you can sanitize parameters by explicitly declaring them, but if you want to use `params[:object]`, you need to sanitize individual key-value pairs.\r\n\r\nScreenshots: \r\n![screen shot 2016-09-28 at 4 32 26 pm](https://cloud.githubusercontent.com/assets/20141428/18917839/31e242e8-8599-11e6-889d-14e16db8f369.png)\r\n![screen shot 2016-09-28 at 4 33 05 pm](https://cloud.githubusercontent.com/assets/20141428/18917854/43a4ead0-8599-11e6-98db-5270649646cd.png)\r\n\r\n\r\nReady for review!","created_at":"2016-09-28T14:34:01Z","updated_at":"2016-09-28T14:49:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7cb830194567f09bc79e26ceeb1f03c9b0934c7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls/7/commits","review_comments_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls/7/comments","review_comment_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/issues/7/comments","statuses_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/statuses/1dd426412b941750a2b08feab7e00d3449ee49f3","head":{"label":"AmberWilkie:dishes","ref":"dishes","sha":"1dd426412b941750a2b08feab7e00d3449ee49f3","user":{"login":"AmberWilkie","id":20141428,"avatar_url":"https://avatars.githubusercontent.com/u/20141428?v=3","gravatar_id":"","url":"https://api.github.com/users/AmberWilkie","html_url":"https://github.com/AmberWilkie","followers_url":"https://api.github.com/users/AmberWilkie/followers","following_url":"https://api.github.com/users/AmberWilkie/following{/other_user}","gists_url":"https://api.github.com/users/AmberWilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/AmberWilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmberWilkie/subscriptions","organizations_url":"https://api.github.com/users/AmberWilkie/orgs","repos_url":"https://api.github.com/users/AmberWilkie/repos","events_url":"https://api.github.com/users/AmberWilkie/events{/privacy}","received_events_url":"https://api.github.com/users/AmberWilkie/received_events","type":"User","site_admin":false},"repo":{"id":69251022,"name":"sf-online-august","full_name":"AmberWilkie/sf-online-august","owner":{"login":"AmberWilkie","id":20141428,"avatar_url":"https://avatars.githubusercontent.com/u/20141428?v=3","gravatar_id":"","url":"https://api.github.com/users/AmberWilkie","html_url":"https://github.com/AmberWilkie","followers_url":"https://api.github.com/users/AmberWilkie/followers","following_url":"https://api.github.com/users/AmberWilkie/following{/other_user}","gists_url":"https://api.github.com/users/AmberWilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/AmberWilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmberWilkie/subscriptions","organizations_url":"https://api.github.com/users/AmberWilkie/orgs","repos_url":"https://api.github.com/users/AmberWilkie/repos","events_url":"https://api.github.com/users/AmberWilkie/events{/privacy}","received_events_url":"https://api.github.com/users/AmberWilkie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AmberWilkie/sf-online-august","description":"Slow Food Online Project - August 2016 Cohort","fork":true,"url":"https://api.github.com/repos/AmberWilkie/sf-online-august","forks_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/forks","keys_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/teams","hooks_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/hooks","issue_events_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/issues/events{/number}","events_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/events","assignees_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/assignees{/user}","branches_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/branches{/branch}","tags_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/tags","blobs_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/git/refs{/sha}","trees_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/statuses/{sha}","languages_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/languages","stargazers_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/stargazers","contributors_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/contributors","subscribers_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/subscribers","subscription_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/subscription","commits_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/commits{/sha}","git_commits_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/git/commits{/sha}","comments_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/comments{/number}","issue_comment_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/issues/comments{/number}","contents_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/contents/{+path}","compare_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/merges","archive_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/downloads","issues_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/issues{/number}","pulls_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/pulls{/number}","milestones_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/milestones{/number}","notifications_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/labels{/name}","releases_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/releases{/id}","deployments_url":"https://api.github.com/repos/AmberWilkie/sf-online-august/deployments","created_at":"2016-09-26T13:08:44Z","updated_at":"2016-09-27T07:41:44Z","pushed_at":"2016-09-28T14:46:50Z","git_url":"git://github.com/AmberWilkie/sf-online-august.git","ssh_url":"git@github.com:AmberWilkie/sf-online-august.git","clone_url":"https://github.com/AmberWilkie/sf-online-august.git","svn_url":"https://github.com/AmberWilkie/sf-online-august","homepage":null,"size":66,"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":"master"}},"base":{"label":"CraftAcademy:develop","ref":"develop","sha":"60b7c1d058d508bf5446db2c857694df300a1651","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":69246706,"name":"sf-online-august","full_name":"CraftAcademy/sf-online-august","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/sf-online-august","description":"Slow Food Online Project - August 2016 Cohort","fork":false,"url":"https://api.github.com/repos/CraftAcademy/sf-online-august","forks_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/forks","keys_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/teams","hooks_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/hooks","issue_events_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/issues/events{/number}","events_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/events","assignees_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/assignees{/user}","branches_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/branches{/branch}","tags_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/tags","blobs_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/git/refs{/sha}","trees_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/statuses/{sha}","languages_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/languages","stargazers_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/stargazers","contributors_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/contributors","subscribers_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/subscribers","subscription_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/subscription","commits_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/commits{/sha}","git_commits_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/git/commits{/sha}","comments_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/comments{/number}","issue_comment_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/issues/comments{/number}","contents_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/contents/{+path}","compare_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/merges","archive_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/downloads","issues_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/issues{/number}","pulls_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls{/number}","milestones_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/milestones{/number}","notifications_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/labels{/name}","releases_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/releases{/id}","deployments_url":"https://api.github.com/repos/CraftAcademy/sf-online-august/deployments","created_at":"2016-09-26T12:15:18Z","updated_at":"2016-09-27T09:08:16Z","pushed_at":"2016-09-28T14:46:51Z","git_url":"git://github.com/CraftAcademy/sf-online-august.git","ssh_url":"git@github.com:CraftAcademy/sf-online-august.git","clone_url":"https://github.com/CraftAcademy/sf-online-august.git","svn_url":"https://github.com/CraftAcademy/sf-online-august","homepage":null,"size":66,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls/7"},"html":{"href":"https://github.com/CraftAcademy/sf-online-august/pull/7"},"issue":{"href":"https://api.github.com/repos/CraftAcademy/sf-online-august/issues/7"},"comments":{"href":"https://api.github.com/repos/CraftAcademy/sf-online-august/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CraftAcademy/sf-online-august/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/CraftAcademy/sf-online-august/statuses/1dd426412b941750a2b08feab7e00d3449ee49f3"}}}}
{"actor":{"display_login":"AmberWilkie"}}