{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/77936336","id":77936336,"diff_hunk":"@@ -10,16 +10,39 @@ 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+  + Entities\n+  + Relations\n+  + Cardinalities\n 2. Create an ERD for the following database: Restaurants, Customers, Items, Ingredients, Beverages, Orders, Vendors.\n 3. What is the entry at the command line to create a new rails app?\n+  + `rails new my_cool_app`\n 4. What do Models generally inherit from in rails?\n+  + In Rails 4 and earlier, `ActiveRecord::Base`. In Rails 5, `ApplicationRecord`\n 5. What do Controllers generally inherit from in a rails project?\n+  + `ApplicationController`\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+  + `resources :horses, only: [:show]`\n 7. What rake task is useful when looking at routes, and what information does it give you?\n+  + `rake routes` gives you the prefix, the verb, the path, and the controller action.\n 8. What is an example of a route helper? When would you use them?\n+  + `horse_path(id)` is a helper rails would give you to access the horse route created in question 6. It would be usually be used in a controller or view, but it could be used anywhere that you want to link to something.\n 9. What's the difference between what `_url` and `_path` return when combined with a routes prefix?\n+  + `_url` returns the absolute path and `_path` returns the relative path.\n 10. What are strong params and why are the necessary?\n+  + Strong params are params that are limited to only accept certain input. They are necessary to prevent unwanted things from being sent in to the application.\n 11. What role does `form_for` play in helping us create our forms?\n+  + `form_for` determines where a form is and, based on that, where to submit that form.\n 12. How does `form_for` know where to submit the user's input?\n+  + It contextually knows based on what view page the form is on (so if it is on new, it will submit to create)","path":"module-2/backend/week_three.md","position":27,"original_position":27,"commit_id":"5ed0a890899b91963081d533c1d66138d8a6af9c","original_commit_id":"5ed0a890899b91963081d533c1d66138d8a6af9c","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":"it knows based on the object we pass it as an argument, not necessarily what view the form is in 👍 ","created_at":"2016-09-08T02:08:20Z","updated_at":"2016-09-08T02:08:20Z","html_url":"https://github.com/turingschool/checks-for-understanding/pull/11#discussion_r77936336","pull_request_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/77936336"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/11#discussion_r77936336"},"pull_request":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/11","id":84172586,"html_url":"https://github.com/turingschool/checks-for-understanding/pull/11","diff_url":"https://github.com/turingschool/checks-for-understanding/pull/11.diff","patch_url":"https://github.com/turingschool/checks-for-understanding/pull/11.patch","issue_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/11","number":11,"state":"open","locked":false,"title":"Brendan Dillon week 3 questions","user":{"login":"brendandillon","id":18507773,"avatar_url":"https://avatars.githubusercontent.com/u/18507773?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandillon","html_url":"https://github.com/brendandillon","followers_url":"https://api.github.com/users/brendandillon/followers","following_url":"https://api.github.com/users/brendandillon/following{/other_user}","gists_url":"https://api.github.com/users/brendandillon/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandillon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandillon/subscriptions","organizations_url":"https://api.github.com/users/brendandillon/orgs","repos_url":"https://api.github.com/users/brendandillon/repos","events_url":"https://api.github.com/users/brendandillon/events{/privacy}","received_events_url":"https://api.github.com/users/brendandillon/received_events","type":"User","site_admin":false},"body":"I felt pretty good about everything in this, but still as if I could use more practice on these ideas.","created_at":"2016-09-06T18:30:10Z","updated_at":"2016-09-08T02:08:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1fbe4d4fb0fe478430b3cd8e8b08ac14916f4215","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/11/commits","review_comments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/11/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/11/comments","statuses_url":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/5ed0a890899b91963081d533c1d66138d8a6af9c","head":{"label":"brendandillon:master","ref":"master","sha":"5ed0a890899b91963081d533c1d66138d8a6af9c","user":{"login":"brendandillon","id":18507773,"avatar_url":"https://avatars.githubusercontent.com/u/18507773?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandillon","html_url":"https://github.com/brendandillon","followers_url":"https://api.github.com/users/brendandillon/followers","following_url":"https://api.github.com/users/brendandillon/following{/other_user}","gists_url":"https://api.github.com/users/brendandillon/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandillon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandillon/subscriptions","organizations_url":"https://api.github.com/users/brendandillon/orgs","repos_url":"https://api.github.com/users/brendandillon/repos","events_url":"https://api.github.com/users/brendandillon/events{/privacy}","received_events_url":"https://api.github.com/users/brendandillon/received_events","type":"User","site_admin":false},"repo":{"id":67518216,"name":"checks-for-understanding","full_name":"brendandillon/checks-for-understanding","owner":{"login":"brendandillon","id":18507773,"avatar_url":"https://avatars.githubusercontent.com/u/18507773?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandillon","html_url":"https://github.com/brendandillon","followers_url":"https://api.github.com/users/brendandillon/followers","following_url":"https://api.github.com/users/brendandillon/following{/other_user}","gists_url":"https://api.github.com/users/brendandillon/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandillon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandillon/subscriptions","organizations_url":"https://api.github.com/users/brendandillon/orgs","repos_url":"https://api.github.com/users/brendandillon/repos","events_url":"https://api.github.com/users/brendandillon/events{/privacy}","received_events_url":"https://api.github.com/users/brendandillon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brendandillon/checks-for-understanding","description":null,"fork":true,"url":"https://api.github.com/repos/brendandillon/checks-for-understanding","forks_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/forks","keys_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/teams","hooks_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/hooks","issue_events_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/issues/events{/number}","events_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/events","assignees_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/assignees{/user}","branches_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/branches{/branch}","tags_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/tags","blobs_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/git/refs{/sha}","trees_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/statuses/{sha}","languages_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/languages","stargazers_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/stargazers","contributors_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/contributors","subscribers_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/subscribers","subscription_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/subscription","commits_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/commits{/sha}","git_commits_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/git/commits{/sha}","comments_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/comments{/number}","issue_comment_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/issues/comments{/number}","contents_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/contents/{+path}","compare_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/merges","archive_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/downloads","issues_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/issues{/number}","pulls_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/pulls{/number}","milestones_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/milestones{/number}","notifications_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/labels{/name}","releases_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/releases{/id}","deployments_url":"https://api.github.com/repos/brendandillon/checks-for-understanding/deployments","created_at":"2016-09-06T14:57:21Z","updated_at":"2016-08-25T17:10:28Z","pushed_at":"2016-09-06T18:28:11Z","git_url":"git://github.com/brendandillon/checks-for-understanding.git","ssh_url":"git@github.com:brendandillon/checks-for-understanding.git","clone_url":"https://github.com/brendandillon/checks-for-understanding.git","svn_url":"https://github.com/brendandillon/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/11"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/11"},"issue":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/11"},"comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/11/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/11/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/5ed0a890899b91963081d533c1d66138d8a6af9c"}}}}
{"actor":{"display_login":"case-eee"}}