{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/77934078","id":77934078,"diff_hunk":"@@ -9,17 +9,34 @@ Note: When you're done, submit a PR with a reflection in the comments about how\n \n ### Questions\n \n-1. What are the 3 main features in an ERD?\n+1. What are the 3 main features in an ERD?<br />\n+Objects, relationships, and cardinality\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-4. What do Models generally inherit from in rails?\n-5. What do Controllers generally inherit from in a rails project?\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-7. What rake task is useful when looking at routes, and what information does it give you?\n-8. What is an example of a route helper? When would you use them?\n-9. What's the difference between what `_url` and `_path` return when combined with a routes prefix?\n-10. What are strong params and why are the necessary?\n-11. What role does `form_for` play in helping us create our forms?\n-12. How does `form_for` know where to submit the user's input?\n-13. Create a form using a `form_for` helper to create a new `Horse`. \n-14. Why do we want to validate our models?\n+3. What is the entry at the command line to create a new rails app?<br />\n+rails new name_of_app\n+4. What do Models generally inherit from in rails?<br />\n+Active Record\n+5. What do Controllers generally inherit from in a rails project?<br />\n+Application Controller\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?<br />\n+get 'horses/:id', to 'horses#show'\n+7. What rake task is useful when looking at routes, and what information does it give you?<br />\n+rake routes gives you all your availble routes, the prefix, the http verb, path information, controller action.\n+8. What is an example of a route helper? When would you use them?<br />\n+A route helper can create all crud functionality for an object with a single line of code.  You would use them as you build out your crud functionality.\n+9. What's the difference between what `_url` and `_path` return when combined with a routes prefix?<br />\n+_url will give a path that includes the domain name, and _path gives you a path relative to the project root.\n+10. What are strong params and why are the necessary?<br />\n+Strong params are for defining what parameters can be passed through your forms, it helps protect from people hacking your site.","path":"module-2/backend/week_three.md","position":35,"original_position":35,"commit_id":"42dfdc975d341e0ea2b85b0218b08e59202d9211","original_commit_id":"42dfdc975d341e0ea2b85b0218b08e59202d9211","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":"definitely!","created_at":"2016-09-08T01:36:28Z","updated_at":"2016-09-08T01:36:28Z","html_url":"https://github.com/turingschool/checks-for-understanding/pull/10#discussion_r77934078","pull_request_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/77934078"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/10#discussion_r77934078"},"pull_request":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/10","id":84139726,"html_url":"https://github.com/turingschool/checks-for-understanding/pull/10","diff_url":"https://github.com/turingschool/checks-for-understanding/pull/10.diff","patch_url":"https://github.com/turingschool/checks-for-understanding/pull/10.patch","issue_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/10","number":10,"state":"open","locked":false,"title":"dan broadbent week 3","user":{"login":"danbroadbent","id":19175387,"avatar_url":"https://avatars.githubusercontent.com/u/19175387?v=3","gravatar_id":"","url":"https://api.github.com/users/danbroadbent","html_url":"https://github.com/danbroadbent","followers_url":"https://api.github.com/users/danbroadbent/followers","following_url":"https://api.github.com/users/danbroadbent/following{/other_user}","gists_url":"https://api.github.com/users/danbroadbent/gists{/gist_id}","starred_url":"https://api.github.com/users/danbroadbent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbroadbent/subscriptions","organizations_url":"https://api.github.com/users/danbroadbent/orgs","repos_url":"https://api.github.com/users/danbroadbent/repos","events_url":"https://api.github.com/users/danbroadbent/events{/privacy}","received_events_url":"https://api.github.com/users/danbroadbent/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-06T15:06:01Z","updated_at":"2016-09-08T01:36:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"172ca61c004c43fcc4d11d859f173a1db4f1c7cb","assignee":{"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},"assignees":[{"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}],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/10/commits","review_comments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/10/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/10/comments","statuses_url":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/42dfdc975d341e0ea2b85b0218b08e59202d9211","head":{"label":"danbroadbent:master","ref":"master","sha":"42dfdc975d341e0ea2b85b0218b08e59202d9211","user":{"login":"danbroadbent","id":19175387,"avatar_url":"https://avatars.githubusercontent.com/u/19175387?v=3","gravatar_id":"","url":"https://api.github.com/users/danbroadbent","html_url":"https://github.com/danbroadbent","followers_url":"https://api.github.com/users/danbroadbent/followers","following_url":"https://api.github.com/users/danbroadbent/following{/other_user}","gists_url":"https://api.github.com/users/danbroadbent/gists{/gist_id}","starred_url":"https://api.github.com/users/danbroadbent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbroadbent/subscriptions","organizations_url":"https://api.github.com/users/danbroadbent/orgs","repos_url":"https://api.github.com/users/danbroadbent/repos","events_url":"https://api.github.com/users/danbroadbent/events{/privacy}","received_events_url":"https://api.github.com/users/danbroadbent/received_events","type":"User","site_admin":false},"repo":{"id":67511120,"name":"checks-for-understanding","full_name":"danbroadbent/checks-for-understanding","owner":{"login":"danbroadbent","id":19175387,"avatar_url":"https://avatars.githubusercontent.com/u/19175387?v=3","gravatar_id":"","url":"https://api.github.com/users/danbroadbent","html_url":"https://github.com/danbroadbent","followers_url":"https://api.github.com/users/danbroadbent/followers","following_url":"https://api.github.com/users/danbroadbent/following{/other_user}","gists_url":"https://api.github.com/users/danbroadbent/gists{/gist_id}","starred_url":"https://api.github.com/users/danbroadbent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbroadbent/subscriptions","organizations_url":"https://api.github.com/users/danbroadbent/orgs","repos_url":"https://api.github.com/users/danbroadbent/repos","events_url":"https://api.github.com/users/danbroadbent/events{/privacy}","received_events_url":"https://api.github.com/users/danbroadbent/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danbroadbent/checks-for-understanding","description":null,"fork":true,"url":"https://api.github.com/repos/danbroadbent/checks-for-understanding","forks_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/forks","keys_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/teams","hooks_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/hooks","issue_events_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/issues/events{/number}","events_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/events","assignees_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/assignees{/user}","branches_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/branches{/branch}","tags_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/tags","blobs_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/git/refs{/sha}","trees_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/statuses/{sha}","languages_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/languages","stargazers_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/stargazers","contributors_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/contributors","subscribers_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/subscribers","subscription_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/subscription","commits_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/commits{/sha}","git_commits_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/git/commits{/sha}","comments_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/comments{/number}","issue_comment_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/issues/comments{/number}","contents_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/contents/{+path}","compare_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/merges","archive_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/downloads","issues_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/issues{/number}","pulls_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/pulls{/number}","milestones_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/milestones{/number}","notifications_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/labels{/name}","releases_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/releases{/id}","deployments_url":"https://api.github.com/repos/danbroadbent/checks-for-understanding/deployments","created_at":"2016-09-06T13:34:43Z","updated_at":"2016-08-25T17:10:28Z","pushed_at":"2016-09-06T14:10:27Z","git_url":"git://github.com/danbroadbent/checks-for-understanding.git","ssh_url":"git@github.com:danbroadbent/checks-for-understanding.git","clone_url":"https://github.com/danbroadbent/checks-for-understanding.git","svn_url":"https://github.com/danbroadbent/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/10"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/10"},"issue":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/10"},"comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/10/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/10/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/42dfdc975d341e0ea2b85b0218b08e59202d9211"}}}}
{"actor":{"display_login":"case-eee"}}