{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/77935876","id":77935876,"diff_hunk":"@@ -10,16 +10,68 @@ 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: Objects that we store the information about.\n+Relationships: The way each entities are linked to one another\n+Cardinalities: An attribute of each relationship, can either be \"One to One\", \"One to Many\", or \"Many to Many\"\n+```\n 2. Create an ERD for the following database: Restaurants, Customers, Items, Ingredients, Beverages, Orders, Vendors.\n+```\n+\n+```\n 3. What is the entry at the command line to create a new rails app?\n+```\n+rails new app_name\n+```\n 4. What do Models generally inherit from in rails?\n+```\n+Models inherit from ActiveRecord::Base\n+```\n 5. What do Controllers generally inherit from in a rails project?\n+```\n+Controllers inherit from ActionController::Base\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+resources :horses, only [:show]\n+```\n 7. What rake task is useful when looking at routes, and what information does it give you?\n+```\n+'rake routes' prints the list of routes that have been defined in the project's routes file.\n+```\n 8. What is an example of a route helper? When would you use them?\n+```\n+horses_path is equivalent to '/horses' and horse_path(id) is the same as '/horses/:id'\n+Route helpers are useful because often times we do not know the exact url or pathname that we want to access, whereas that information is dynamically accessible through the route helper.","path":"module-2/backend/week_three.md","position":36,"original_position":36,"commit_id":"f3434ee9ede49178278751b58af8a27c52e229c0","original_commit_id":"f3434ee9ede49178278751b58af8a27c52e229c0","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":"👍 ","created_at":"2016-09-08T02:01:38Z","updated_at":"2016-09-08T02:01:38Z","html_url":"https://github.com/turingschool/checks-for-understanding/pull/2#discussion_r77935876","pull_request_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/77935876"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/2#discussion_r77935876"},"pull_request":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/2","id":84050614,"html_url":"https://github.com/turingschool/checks-for-understanding/pull/2","diff_url":"https://github.com/turingschool/checks-for-understanding/pull/2.diff","patch_url":"https://github.com/turingschool/checks-for-understanding/pull/2.patch","issue_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/2","number":2,"state":"open","locked":false,"title":"David Davydov - Week 3 Questions","user":{"login":"kctrlv","id":18424060,"avatar_url":"https://avatars.githubusercontent.com/u/18424060?v=3","gravatar_id":"","url":"https://api.github.com/users/kctrlv","html_url":"https://github.com/kctrlv","followers_url":"https://api.github.com/users/kctrlv/followers","following_url":"https://api.github.com/users/kctrlv/following{/other_user}","gists_url":"https://api.github.com/users/kctrlv/gists{/gist_id}","starred_url":"https://api.github.com/users/kctrlv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kctrlv/subscriptions","organizations_url":"https://api.github.com/users/kctrlv/orgs","repos_url":"https://api.github.com/users/kctrlv/repos","events_url":"https://api.github.com/users/kctrlv/events{/privacy}","received_events_url":"https://api.github.com/users/kctrlv/received_events","type":"User","site_admin":false},"body":"This exercise made me feel like there's a lot I don't fully know, but I know a lot more than I did a week ago. There's a lot of material in this course, and it helps to keep up with all that we've covered during the week.","created_at":"2016-09-06T01:58:42Z","updated_at":"2016-09-08T02:01:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0036c770cdb1bb023bb55b6d714c1a6bae459240","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/2/commits","review_comments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/2/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/2/comments","statuses_url":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/f3434ee9ede49178278751b58af8a27c52e229c0","head":{"label":"kctrlv:patch-1","ref":"patch-1","sha":"f3434ee9ede49178278751b58af8a27c52e229c0","user":{"login":"kctrlv","id":18424060,"avatar_url":"https://avatars.githubusercontent.com/u/18424060?v=3","gravatar_id":"","url":"https://api.github.com/users/kctrlv","html_url":"https://github.com/kctrlv","followers_url":"https://api.github.com/users/kctrlv/followers","following_url":"https://api.github.com/users/kctrlv/following{/other_user}","gists_url":"https://api.github.com/users/kctrlv/gists{/gist_id}","starred_url":"https://api.github.com/users/kctrlv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kctrlv/subscriptions","organizations_url":"https://api.github.com/users/kctrlv/orgs","repos_url":"https://api.github.com/users/kctrlv/repos","events_url":"https://api.github.com/users/kctrlv/events{/privacy}","received_events_url":"https://api.github.com/users/kctrlv/received_events","type":"User","site_admin":false},"repo":{"id":67462614,"name":"checks-for-understanding","full_name":"kctrlv/checks-for-understanding","owner":{"login":"kctrlv","id":18424060,"avatar_url":"https://avatars.githubusercontent.com/u/18424060?v=3","gravatar_id":"","url":"https://api.github.com/users/kctrlv","html_url":"https://github.com/kctrlv","followers_url":"https://api.github.com/users/kctrlv/followers","following_url":"https://api.github.com/users/kctrlv/following{/other_user}","gists_url":"https://api.github.com/users/kctrlv/gists{/gist_id}","starred_url":"https://api.github.com/users/kctrlv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kctrlv/subscriptions","organizations_url":"https://api.github.com/users/kctrlv/orgs","repos_url":"https://api.github.com/users/kctrlv/repos","events_url":"https://api.github.com/users/kctrlv/events{/privacy}","received_events_url":"https://api.github.com/users/kctrlv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kctrlv/checks-for-understanding","description":null,"fork":true,"url":"https://api.github.com/repos/kctrlv/checks-for-understanding","forks_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/forks","keys_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/teams","hooks_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/hooks","issue_events_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/issues/events{/number}","events_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/events","assignees_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/assignees{/user}","branches_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/branches{/branch}","tags_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/tags","blobs_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/git/refs{/sha}","trees_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/statuses/{sha}","languages_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/languages","stargazers_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/stargazers","contributors_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/contributors","subscribers_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/subscribers","subscription_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/subscription","commits_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/commits{/sha}","git_commits_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/git/commits{/sha}","comments_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/comments{/number}","issue_comment_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/issues/comments{/number}","contents_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/contents/{+path}","compare_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/merges","archive_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/downloads","issues_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/issues{/number}","pulls_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/pulls{/number}","milestones_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/milestones{/number}","notifications_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/labels{/name}","releases_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/releases{/id}","deployments_url":"https://api.github.com/repos/kctrlv/checks-for-understanding/deployments","created_at":"2016-09-06T01:32:35Z","updated_at":"2016-08-25T17:10:28Z","pushed_at":"2016-09-06T01:58:32Z","git_url":"git://github.com/kctrlv/checks-for-understanding.git","ssh_url":"git@github.com:kctrlv/checks-for-understanding.git","clone_url":"https://github.com/kctrlv/checks-for-understanding.git","svn_url":"https://github.com/kctrlv/checks-for-understanding","homepage":null,"size":9,"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/2"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/2"},"issue":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/2"},"comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/2/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/2/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/f3434ee9ede49178278751b58af8a27c52e229c0"}}}}
{"actor":{"display_login":"case-eee"}}