{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/85664844","pull_request_review_id":6367717,"id":85664844,"diff_hunk":"@@ -10,14 +10,63 @@ Note: When you're done, submit a PR with a reflection in the comments about how\n ### Questions\n \n 1. What is the entry at the command line to create a new rails app?\n+\n+rails new (And maybe the option to not use Spring. Spring breaks dreams.)\n+\n+\n 2. What do Models generally inherit from in rails?\n+\n+ActiveRecord::Base\n+\n+\n 3. What do Controllers generally inherit from in a rails project?\n+\n+ApplicationController\n+\n+\n 4. 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 5. What rake task is useful when looking at routes, and what information does it give you?\n+\n+rake routes gives you information about the prefix, verb, uri pattern, and corresponding controller action.\n+\n+\n 6. What is an example of a route helper? When would you use them?\n+\n+A route helper is something like horses_path, which would bring you to the index of horses. You use them in place of writing out a url.\n+\n+\n 7. What's the difference between what `_url` and `_path` return when combined with a routes prefix?\n+\n+path is relative. url is absolute.\n+\n+\n 8. What are strong params and why are the necessary?\n+\n+Strong params prevent parameters from being mass assigned to an ActiveRecord object as a security measure. You must specify which params are allowed to be assigned.\n+\n+\n 9. What role does `form_for` play in helping us create our forms?\n+\n+form_for makes it easy to create forms to create and update ActiveRecord objects.\n+\n 10. How does `form_for` know where to submit the user's input?\n-11. Create a form using a `form_for` helper to create a new `Horse`. \n+\n+An instance of a model is passed in when form_for is called. It creates or updates that instance.","path":"module-2/backend/week_three.md","position":49,"original_position":49,"commit_id":"10868b9651d6cb6022ca15aee63e1ed782c91598","original_commit_id":"10868b9651d6cb6022ca15aee63e1ed782c91598","user":{"login":"s-espinosa","id":10855116,"avatar_url":"https://avatars.githubusercontent.com/u/10855116?v=3","gravatar_id":"","url":"https://api.github.com/users/s-espinosa","html_url":"https://github.com/s-espinosa","followers_url":"https://api.github.com/users/s-espinosa/followers","following_url":"https://api.github.com/users/s-espinosa/following{/other_user}","gists_url":"https://api.github.com/users/s-espinosa/gists{/gist_id}","starred_url":"https://api.github.com/users/s-espinosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-espinosa/subscriptions","organizations_url":"https://api.github.com/users/s-espinosa/orgs","repos_url":"https://api.github.com/users/s-espinosa/repos","events_url":"https://api.github.com/users/s-espinosa/events{/privacy}","received_events_url":"https://api.github.com/users/s-espinosa/received_events","type":"User","site_admin":false},"body":"Right general idea, but it's important to think about how this whole cycle works. `form_for` will take the parameter that's passed to it and generate an HTML form that will submit to the appropriate route using the appropriate method (HTTP verb). Your URI pattern in your `rake routes` output will tell you what that route/method is. View source on one of the forms you create to see this in action.","created_at":"2016-10-30T17:45:28Z","updated_at":"2016-10-30T17:46:29Z","html_url":"https://github.com/turingschool/checks-for-understanding/pull/60#discussion_r85664844","pull_request_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/60","_links":{"self":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/85664844"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/60#discussion_r85664844"},"pull_request":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/60"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/60","id":90552923,"html_url":"https://github.com/turingschool/checks-for-understanding/pull/60","diff_url":"https://github.com/turingschool/checks-for-understanding/pull/60.diff","patch_url":"https://github.com/turingschool/checks-for-understanding/pull/60.patch","issue_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/60","number":60,"state":"open","locked":false,"title":"Update week_three.md","user":{"login":"rtravitz","id":12074778,"avatar_url":"https://avatars.githubusercontent.com/u/12074778?v=3","gravatar_id":"","url":"https://api.github.com/users/rtravitz","html_url":"https://github.com/rtravitz","followers_url":"https://api.github.com/users/rtravitz/followers","following_url":"https://api.github.com/users/rtravitz/following{/other_user}","gists_url":"https://api.github.com/users/rtravitz/gists{/gist_id}","starred_url":"https://api.github.com/users/rtravitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtravitz/subscriptions","organizations_url":"https://api.github.com/users/rtravitz/orgs","repos_url":"https://api.github.com/users/rtravitz/repos","events_url":"https://api.github.com/users/rtravitz/events{/privacy}","received_events_url":"https://api.github.com/users/rtravitz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-24T05:52:57Z","updated_at":"2016-10-30T17:46:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebc43afb1c3846b3a16c1891c3ab121ea5add8fa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/60/commits","review_comments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/60/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/60/comments","statuses_url":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/10868b9651d6cb6022ca15aee63e1ed782c91598","head":{"label":"rtravitz:patch-3","ref":"patch-3","sha":"10868b9651d6cb6022ca15aee63e1ed782c91598","user":{"login":"rtravitz","id":12074778,"avatar_url":"https://avatars.githubusercontent.com/u/12074778?v=3","gravatar_id":"","url":"https://api.github.com/users/rtravitz","html_url":"https://github.com/rtravitz","followers_url":"https://api.github.com/users/rtravitz/followers","following_url":"https://api.github.com/users/rtravitz/following{/other_user}","gists_url":"https://api.github.com/users/rtravitz/gists{/gist_id}","starred_url":"https://api.github.com/users/rtravitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtravitz/subscriptions","organizations_url":"https://api.github.com/users/rtravitz/orgs","repos_url":"https://api.github.com/users/rtravitz/repos","events_url":"https://api.github.com/users/rtravitz/events{/privacy}","received_events_url":"https://api.github.com/users/rtravitz/received_events","type":"User","site_admin":false},"repo":{"id":70450748,"name":"checks-for-understanding","full_name":"rtravitz/checks-for-understanding","owner":{"login":"rtravitz","id":12074778,"avatar_url":"https://avatars.githubusercontent.com/u/12074778?v=3","gravatar_id":"","url":"https://api.github.com/users/rtravitz","html_url":"https://github.com/rtravitz","followers_url":"https://api.github.com/users/rtravitz/followers","following_url":"https://api.github.com/users/rtravitz/following{/other_user}","gists_url":"https://api.github.com/users/rtravitz/gists{/gist_id}","starred_url":"https://api.github.com/users/rtravitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtravitz/subscriptions","organizations_url":"https://api.github.com/users/rtravitz/orgs","repos_url":"https://api.github.com/users/rtravitz/repos","events_url":"https://api.github.com/users/rtravitz/events{/privacy}","received_events_url":"https://api.github.com/users/rtravitz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rtravitz/checks-for-understanding","description":null,"fork":true,"url":"https://api.github.com/repos/rtravitz/checks-for-understanding","forks_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/forks","keys_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/teams","hooks_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/hooks","issue_events_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/issues/events{/number}","events_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/events","assignees_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/assignees{/user}","branches_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/branches{/branch}","tags_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/tags","blobs_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/git/refs{/sha}","trees_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/statuses/{sha}","languages_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/languages","stargazers_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/stargazers","contributors_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/contributors","subscribers_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/subscribers","subscription_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/subscription","commits_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/commits{/sha}","git_commits_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/git/commits{/sha}","comments_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/comments{/number}","issue_comment_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/issues/comments{/number}","contents_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/contents/{+path}","compare_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/merges","archive_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/downloads","issues_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/issues{/number}","pulls_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/pulls{/number}","milestones_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/milestones{/number}","notifications_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/labels{/name}","releases_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/releases{/id}","deployments_url":"https://api.github.com/repos/rtravitz/checks-for-understanding/deployments","created_at":"2016-10-10T04:02:32Z","updated_at":"2016-09-09T16:52:56Z","pushed_at":"2016-10-24T05:52:44Z","git_url":"git://github.com/rtravitz/checks-for-understanding.git","ssh_url":"git@github.com:rtravitz/checks-for-understanding.git","clone_url":"https://github.com/rtravitz/checks-for-understanding.git","svn_url":"https://github.com/rtravitz/checks-for-understanding","homepage":null,"size":16,"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":"606ccab64f34fdfc68daa6bab112719a4375fc22","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-09-09T16:52:56Z","pushed_at":"2016-10-25T13:46:35Z","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":1811,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":8,"forks":32,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/60"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/60"},"issue":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/60"},"comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/60/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/60/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/60/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/10868b9651d6cb6022ca15aee63e1ed782c91598"}}}}
{"actor":{"display_login":"s-espinosa"}}