{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/77936688","id":77936688,"diff_hunk":"@@ -10,16 +10,82 @@ Note: When you're done, submit a PR with a reflection in the comments about how\n ### Questions\n \n 1. What are the 3 main features in an ERD?\n+  ```\n+Entities, Relationships, Cardinality\n+  ```\n 2. Create an ERD for the following database: Restaurants, Customers, Items, Ingredients, Beverages, Orders, Vendors.\n+```\n+Restaurants => has_many => customers\n+Restaurants => has_many => items \n+Items => has_many = ingredients \n+Vendors => has_many => Restaurants\n+Restaurants => has_many => beverages\n+Customer => has_many => orders\n+```\n 3. What is the entry at the command line to create a new rails app?\n+```\n+rails new appname\n+```\n 4. What do Models generally inherit from in rails?\n+```\n+Models inherit from Active Record\n+```\n 5. What do Controllers generally inherit from in a rails project?\n+```\n+Application Controller\n+```\n 6. How would I create a route if I wanted to see a specific horse in my routes fitle assuming I'm sticking to standard conventions and that I didn't want other CRUD functionality?\n+```\n+there are a few ways i can go about it, but as far as the route goes:\n+\n+get '/horse', to: 'horses#show'\n+resources :horses, only: [:show]\n+\n+def show\n+  @horse = Horse.find(params[:id])\n+end\n+\n+app/view/show.html.erb\n+\n+I think it kinda gives the idea? \n+```\n 7. What rake task is useful when looking at routes, and what information does it give you?\n+```\n+rake routes, and it will give you the prefix, verb, uri, controller and action\n+```\n 8. What is an example of a route helper? When would you use them?\n+```\n+user_path or @user depending how you have your code set up.\n+```\n 9. What's the difference between what `_url` and `_path` return when combined with a routes prefix?\n+```\n+path starts from the '/' root and url gives the entire path including http....","path":"module-2/backend/week_three.md","position":53,"original_position":53,"commit_id":"0100f65502385b4bfb8fe0de1346b9398e48a314","original_commit_id":"0100f65502385b4bfb8fe0de1346b9398e48a314","user":{"login":"case-eee","id":6503717,"avatar_url":"https://avatars.githubusercontent.com/u/6503717?v=3","gravatar_id":"","url":"https://api.github.com/users/case-eee","html_url":"https://github.com/case-eee","followers_url":"https://api.github.com/users/case-eee/followers","following_url":"https://api.github.com/users/case-eee/following{/other_user}","gists_url":"https://api.github.com/users/case-eee/gists{/gist_id}","starred_url":"https://api.github.com/users/case-eee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/case-eee/subscriptions","organizations_url":"https://api.github.com/users/case-eee/orgs","repos_url":"https://api.github.com/users/case-eee/repos","events_url":"https://api.github.com/users/case-eee/events{/privacy}","received_events_url":"https://api.github.com/users/case-eee/received_events","type":"User","site_admin":false},"body":"nice 🎉 ","created_at":"2016-09-08T02:13:43Z","updated_at":"2016-09-08T02:13:43Z","html_url":"https://github.com/turingschool/checks-for-understanding/pull/15#discussion_r77936688","pull_request_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/77936688"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/15#discussion_r77936688"},"pull_request":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/15","id":84371933,"html_url":"https://github.com/turingschool/checks-for-understanding/pull/15","diff_url":"https://github.com/turingschool/checks-for-understanding/pull/15.diff","patch_url":"https://github.com/turingschool/checks-for-understanding/pull/15.patch","issue_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/15","number":15,"state":"open","locked":false,"title":"Raphael_Barbo - week 3 check","user":{"login":"rsbarbo","id":14164092,"avatar_url":"https://avatars.githubusercontent.com/u/14164092?v=3","gravatar_id":"","url":"https://api.github.com/users/rsbarbo","html_url":"https://github.com/rsbarbo","followers_url":"https://api.github.com/users/rsbarbo/followers","following_url":"https://api.github.com/users/rsbarbo/following{/other_user}","gists_url":"https://api.github.com/users/rsbarbo/gists{/gist_id}","starred_url":"https://api.github.com/users/rsbarbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsbarbo/subscriptions","organizations_url":"https://api.github.com/users/rsbarbo/orgs","repos_url":"https://api.github.com/users/rsbarbo/repos","events_url":"https://api.github.com/users/rsbarbo/events{/privacy}","received_events_url":"https://api.github.com/users/rsbarbo/received_events","type":"User","site_admin":false},"body":"I had to look up the answer for question one, I remember Andrew's class but I could not remember the terminology.","created_at":"2016-09-07T20:55:15Z","updated_at":"2016-09-08T02:13:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"294a84a8c93ad3ad8c3b6f25c0a6abac5cb643c6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/15/commits","review_comments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/15/comments","review_comment_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/15/comments","statuses_url":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/0100f65502385b4bfb8fe0de1346b9398e48a314","head":{"label":"rsbarbo:master","ref":"master","sha":"0100f65502385b4bfb8fe0de1346b9398e48a314","user":{"login":"rsbarbo","id":14164092,"avatar_url":"https://avatars.githubusercontent.com/u/14164092?v=3","gravatar_id":"","url":"https://api.github.com/users/rsbarbo","html_url":"https://github.com/rsbarbo","followers_url":"https://api.github.com/users/rsbarbo/followers","following_url":"https://api.github.com/users/rsbarbo/following{/other_user}","gists_url":"https://api.github.com/users/rsbarbo/gists{/gist_id}","starred_url":"https://api.github.com/users/rsbarbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsbarbo/subscriptions","organizations_url":"https://api.github.com/users/rsbarbo/orgs","repos_url":"https://api.github.com/users/rsbarbo/repos","events_url":"https://api.github.com/users/rsbarbo/events{/privacy}","received_events_url":"https://api.github.com/users/rsbarbo/received_events","type":"User","site_admin":false},"repo":{"id":67636906,"name":"checks-for-understanding","full_name":"rsbarbo/checks-for-understanding","owner":{"login":"rsbarbo","id":14164092,"avatar_url":"https://avatars.githubusercontent.com/u/14164092?v=3","gravatar_id":"","url":"https://api.github.com/users/rsbarbo","html_url":"https://github.com/rsbarbo","followers_url":"https://api.github.com/users/rsbarbo/followers","following_url":"https://api.github.com/users/rsbarbo/following{/other_user}","gists_url":"https://api.github.com/users/rsbarbo/gists{/gist_id}","starred_url":"https://api.github.com/users/rsbarbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsbarbo/subscriptions","organizations_url":"https://api.github.com/users/rsbarbo/orgs","repos_url":"https://api.github.com/users/rsbarbo/repos","events_url":"https://api.github.com/users/rsbarbo/events{/privacy}","received_events_url":"https://api.github.com/users/rsbarbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rsbarbo/checks-for-understanding","description":null,"fork":true,"url":"https://api.github.com/repos/rsbarbo/checks-for-understanding","forks_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/forks","keys_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/teams","hooks_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/hooks","issue_events_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/issues/events{/number}","events_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/events","assignees_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/assignees{/user}","branches_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/branches{/branch}","tags_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/tags","blobs_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/git/refs{/sha}","trees_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/statuses/{sha}","languages_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/languages","stargazers_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/stargazers","contributors_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/contributors","subscribers_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/subscribers","subscription_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/subscription","commits_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/commits{/sha}","git_commits_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/git/commits{/sha}","comments_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/comments{/number}","issue_comment_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/issues/comments{/number}","contents_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/contents/{+path}","compare_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/merges","archive_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/downloads","issues_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/issues{/number}","pulls_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/pulls{/number}","milestones_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/milestones{/number}","notifications_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/labels{/name}","releases_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/releases{/id}","deployments_url":"https://api.github.com/repos/rsbarbo/checks-for-understanding/deployments","created_at":"2016-09-07T19:27:18Z","updated_at":"2016-08-25T17:10:28Z","pushed_at":"2016-09-07T20:54:10Z","git_url":"git://github.com/rsbarbo/checks-for-understanding.git","ssh_url":"git@github.com:rsbarbo/checks-for-understanding.git","clone_url":"https://github.com/rsbarbo/checks-for-understanding.git","svn_url":"https://github.com/rsbarbo/checks-for-understanding","homepage":null,"size":10,"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":"turingschool:master","ref":"master","sha":"26dec1f3fd030bef325221429bc15847f81f1c70","user":{"login":"turingschool","id":7934292,"avatar_url":"https://avatars.githubusercontent.com/u/7934292?v=3","gravatar_id":"","url":"https://api.github.com/users/turingschool","html_url":"https://github.com/turingschool","followers_url":"https://api.github.com/users/turingschool/followers","following_url":"https://api.github.com/users/turingschool/following{/other_user}","gists_url":"https://api.github.com/users/turingschool/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool/subscriptions","organizations_url":"https://api.github.com/users/turingschool/orgs","repos_url":"https://api.github.com/users/turingschool/repos","events_url":"https://api.github.com/users/turingschool/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool/received_events","type":"Organization","site_admin":false},"repo":{"id":66577733,"name":"checks-for-understanding","full_name":"turingschool/checks-for-understanding","owner":{"login":"turingschool","id":7934292,"avatar_url":"https://avatars.githubusercontent.com/u/7934292?v=3","gravatar_id":"","url":"https://api.github.com/users/turingschool","html_url":"https://github.com/turingschool","followers_url":"https://api.github.com/users/turingschool/followers","following_url":"https://api.github.com/users/turingschool/following{/other_user}","gists_url":"https://api.github.com/users/turingschool/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool/subscriptions","organizations_url":"https://api.github.com/users/turingschool/orgs","repos_url":"https://api.github.com/users/turingschool/repos","events_url":"https://api.github.com/users/turingschool/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/turingschool/checks-for-understanding","description":null,"fork":false,"url":"https://api.github.com/repos/turingschool/checks-for-understanding","forks_url":"https://api.github.com/repos/turingschool/checks-for-understanding/forks","keys_url":"https://api.github.com/repos/turingschool/checks-for-understanding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turingschool/checks-for-understanding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turingschool/checks-for-understanding/teams","hooks_url":"https://api.github.com/repos/turingschool/checks-for-understanding/hooks","issue_events_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/events{/number}","events_url":"https://api.github.com/repos/turingschool/checks-for-understanding/events","assignees_url":"https://api.github.com/repos/turingschool/checks-for-understanding/assignees{/user}","branches_url":"https://api.github.com/repos/turingschool/checks-for-understanding/branches{/branch}","tags_url":"https://api.github.com/repos/turingschool/checks-for-understanding/tags","blobs_url":"https://api.github.com/repos/turingschool/checks-for-understanding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turingschool/checks-for-understanding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turingschool/checks-for-understanding/git/refs{/sha}","trees_url":"https://api.github.com/repos/turingschool/checks-for-understanding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/{sha}","languages_url":"https://api.github.com/repos/turingschool/checks-for-understanding/languages","stargazers_url":"https://api.github.com/repos/turingschool/checks-for-understanding/stargazers","contributors_url":"https://api.github.com/repos/turingschool/checks-for-understanding/contributors","subscribers_url":"https://api.github.com/repos/turingschool/checks-for-understanding/subscribers","subscription_url":"https://api.github.com/repos/turingschool/checks-for-understanding/subscription","commits_url":"https://api.github.com/repos/turingschool/checks-for-understanding/commits{/sha}","git_commits_url":"https://api.github.com/repos/turingschool/checks-for-understanding/git/commits{/sha}","comments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/comments{/number}","issue_comment_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/comments{/number}","contents_url":"https://api.github.com/repos/turingschool/checks-for-understanding/contents/{+path}","compare_url":"https://api.github.com/repos/turingschool/checks-for-understanding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turingschool/checks-for-understanding/merges","archive_url":"https://api.github.com/repos/turingschool/checks-for-understanding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turingschool/checks-for-understanding/downloads","issues_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues{/number}","pulls_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls{/number}","milestones_url":"https://api.github.com/repos/turingschool/checks-for-understanding/milestones{/number}","notifications_url":"https://api.github.com/repos/turingschool/checks-for-understanding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turingschool/checks-for-understanding/labels{/name}","releases_url":"https://api.github.com/repos/turingschool/checks-for-understanding/releases{/id}","deployments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/deployments","created_at":"2016-08-25T17:10:28Z","updated_at":"2016-08-25T17:10:28Z","pushed_at":"2016-09-07T20:55:15Z","git_url":"git://github.com/turingschool/checks-for-understanding.git","ssh_url":"git@github.com:turingschool/checks-for-understanding.git","clone_url":"https://github.com/turingschool/checks-for-understanding.git","svn_url":"https://github.com/turingschool/checks-for-understanding","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":15,"forks":16,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/15"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/15"},"issue":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/15"},"comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/0100f65502385b4bfb8fe0de1346b9398e48a314"}}}}
{"actor":{"display_login":"case-eee"}}