{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/85666075","pull_request_review_id":6368825,"id":85666075,"diff_hunk":"@@ -10,14 +10,83 @@ 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+<br>\n+`rails new project_name`\n+<br>\n+<br>\n+\n 2. What do Models generally inherit from in rails?\n+<br>\n+ActiveRecord\n+<br>\n+<br>\n+\n 3. What do Controllers generally inherit from in a rails project?\n+<br>\n+ApplicationController\n+<br>\n+<br>\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+<br>\n+If you only wanted the `index` route for example:\n+`resources :horse, only: [:index]`\n+or\n+`get '/horse' => 'horse#index'`\n+<br>\n+<br>\n+\n 5. What rake task is useful when looking at routes, and what information does it give you?\n+<br>\n+`rake routes` shows you all the routes you have available, as well as the prefix, verb, url patter, and which controller and method you'd need to use for each.\n+<br>\n+<br>\n+\n 6. What is an example of a route helper? When would you use them?\n+<br>\n+A route helper is a rails short cut that helps to link to the various routes without having to manually enter the path. You can use them in your views to link to any of your available routes.\n+\n+<br>\n+<br>\n+\n 7. What's the difference between what `_url` and `_path` return when combined with a routes prefix?\n+<br>\n+`_url` will return the full url and `_path` will just return the relative path.\n+<br>\n+<br>\n+\n 8. What are strong params and why are the necessary?\n+<br>\n+Strong params are the permissible params that can be passed through our app.\n+\n+<br>\n+<br>\n+\n 9. What role does `form_for` play in helping us create our forms?\n+<br>\n+`form_for` is a shortcut that helps us create forms in rails. \n+<br>\n+<br>\n+\n 10. How does `form_for` know where to submit the user's input?\n+<br>\n+It knows depending on which http verb we're using.\n+<br>\n+<br>\n+\n 11. Create a form using a `form_for` helper to create a new `Horse`. \n+<br>\n+```ruby\n+<%= form_for @horse do |f| %>\n+  <%= f.label :horse_name %>\n+  <%= f.text_field :horse_name %>\n+  <%= f.submit %>\n+<% end %>\n+\n+```\n+<br>\n+<br>\n+\n 12. Why do we want to validate our models?\n+<br>\n+We validate our models to make sure they contain all the required attributes when they are created and to ensure uniqueness (when necessary).","path":"module-2/backend/week_three.md","position":83,"original_position":83,"commit_id":"e8b90a42857d6dba310a7bfae7bf4ad13560393e","original_commit_id":"e8b90a42857d6dba310a7bfae7bf4ad13560393e","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":"👍 ","created_at":"2016-10-30T18:40:37Z","updated_at":"2016-10-30T18:41:09Z","html_url":"https://github.com/turingschool/checks-for-understanding/pull/57#discussion_r85666075","pull_request_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/85666075"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/57#discussion_r85666075"},"pull_request":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/57","id":90546295,"html_url":"https://github.com/turingschool/checks-for-understanding/pull/57","diff_url":"https://github.com/turingschool/checks-for-understanding/pull/57.diff","patch_url":"https://github.com/turingschool/checks-for-understanding/pull/57.patch","issue_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/57","number":57,"state":"open","locked":false,"title":"Week 3","user":{"login":"epintozzi","id":5739330,"avatar_url":"https://avatars.githubusercontent.com/u/5739330?v=3","gravatar_id":"","url":"https://api.github.com/users/epintozzi","html_url":"https://github.com/epintozzi","followers_url":"https://api.github.com/users/epintozzi/followers","following_url":"https://api.github.com/users/epintozzi/following{/other_user}","gists_url":"https://api.github.com/users/epintozzi/gists{/gist_id}","starred_url":"https://api.github.com/users/epintozzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epintozzi/subscriptions","organizations_url":"https://api.github.com/users/epintozzi/orgs","repos_url":"https://api.github.com/users/epintozzi/repos","events_url":"https://api.github.com/users/epintozzi/events{/privacy}","received_events_url":"https://api.github.com/users/epintozzi/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-24T03:54:02Z","updated_at":"2016-10-30T18:41:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f10ea83aab43ce47c4907ae724d61b42606dd3c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/57/commits","review_comments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/57/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/57/comments","statuses_url":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/e8b90a42857d6dba310a7bfae7bf4ad13560393e","head":{"label":"epintozzi:master","ref":"master","sha":"e8b90a42857d6dba310a7bfae7bf4ad13560393e","user":{"login":"epintozzi","id":5739330,"avatar_url":"https://avatars.githubusercontent.com/u/5739330?v=3","gravatar_id":"","url":"https://api.github.com/users/epintozzi","html_url":"https://github.com/epintozzi","followers_url":"https://api.github.com/users/epintozzi/followers","following_url":"https://api.github.com/users/epintozzi/following{/other_user}","gists_url":"https://api.github.com/users/epintozzi/gists{/gist_id}","starred_url":"https://api.github.com/users/epintozzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epintozzi/subscriptions","organizations_url":"https://api.github.com/users/epintozzi/orgs","repos_url":"https://api.github.com/users/epintozzi/repos","events_url":"https://api.github.com/users/epintozzi/events{/privacy}","received_events_url":"https://api.github.com/users/epintozzi/received_events","type":"User","site_admin":false},"repo":{"id":70347173,"name":"checks-for-understanding","full_name":"epintozzi/checks-for-understanding","owner":{"login":"epintozzi","id":5739330,"avatar_url":"https://avatars.githubusercontent.com/u/5739330?v=3","gravatar_id":"","url":"https://api.github.com/users/epintozzi","html_url":"https://github.com/epintozzi","followers_url":"https://api.github.com/users/epintozzi/followers","following_url":"https://api.github.com/users/epintozzi/following{/other_user}","gists_url":"https://api.github.com/users/epintozzi/gists{/gist_id}","starred_url":"https://api.github.com/users/epintozzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epintozzi/subscriptions","organizations_url":"https://api.github.com/users/epintozzi/orgs","repos_url":"https://api.github.com/users/epintozzi/repos","events_url":"https://api.github.com/users/epintozzi/events{/privacy}","received_events_url":"https://api.github.com/users/epintozzi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/epintozzi/checks-for-understanding","description":null,"fork":true,"url":"https://api.github.com/repos/epintozzi/checks-for-understanding","forks_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/forks","keys_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/teams","hooks_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/hooks","issue_events_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/issues/events{/number}","events_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/events","assignees_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/assignees{/user}","branches_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/branches{/branch}","tags_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/tags","blobs_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/git/refs{/sha}","trees_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/statuses/{sha}","languages_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/languages","stargazers_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/stargazers","contributors_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/contributors","subscribers_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/subscribers","subscription_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/subscription","commits_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/commits{/sha}","git_commits_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/git/commits{/sha}","comments_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/comments{/number}","issue_comment_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/issues/comments{/number}","contents_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/contents/{+path}","compare_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/merges","archive_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/downloads","issues_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/issues{/number}","pulls_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/pulls{/number}","milestones_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/milestones{/number}","notifications_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/labels{/name}","releases_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/releases{/id}","deployments_url":"https://api.github.com/repos/epintozzi/checks-for-understanding/deployments","created_at":"2016-10-08T17:30:45Z","updated_at":"2016-09-09T16:52:56Z","pushed_at":"2016-10-24T03:53:11Z","git_url":"git://github.com/epintozzi/checks-for-understanding.git","ssh_url":"git@github.com:epintozzi/checks-for-understanding.git","clone_url":"https://github.com/epintozzi/checks-for-understanding.git","svn_url":"https://github.com/epintozzi/checks-for-understanding","homepage":null,"size":20,"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/57"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/57"},"issue":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/57"},"comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/57/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/57/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/e8b90a42857d6dba310a7bfae7bf4ad13560393e"}}}}
{"actor":{"display_login":"s-espinosa"}}