{"action":"created","comment":{"url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls/comments/26071792","id":26071792,"diff_hunk":"@@ -92,95 +93,150 @@\n \n         <%= user.name.downcase %>\n \n-\n+        This would indicate that the name attribute for user is not set.\n \n 23. What gem did we use to paginate our Collections?\n \n-\n+    Kaminari\n+    https://github.com/amatsuda/kaminari\n \n 24. What gem did we use to provide upload functionality?\n \n+    gem 'carrierwave'\n+    place require 'carrierwave/orm/activerecord' in config/application.rb after Bundler.require(*Rails.groups).\n \n+    May also want to include gem \"mini_magick\" and enable it within your image uploader.\n \n-25. What is your favorite musical artist or group?\n+    https://github.com/amatsuda/carrierwave\n \n+25. What is your favorite musical artist or group?\n \n+    Van Morrison\n \n 26. What technology do we use to style HTML in the browser?\n \n-\n+    CSS with massive help from Bootstrap.\n \n 27. What type of view templates have we been using in our class to create dynamic HTML?\n \n-\n+    Bootstrap\n+    http://getbootstrap.com/getting-started/\n \n 28. What type of helpers do we use to check data against certain rules and requirements before it is saved to our database?\n \n-\n+    Active Record Validations\n+    http://edgeguides.rubyonrails.org/active_record_validations.html\n \n 29. What are model associations?\n \n-\n+    Links between tables in the SQL database that allow us to associate and link data.\n+    http://edgeguides.rubyonrails.org/association_basics.html\n \n 30. Based on the name, if The Iron Yard wasn't a code school, what else might it be?\n \n-\n+    A gym\n \n 31. What code would you use to find the a User record in the database with an id of 17?\n \n-\n+    User.find(17)\n \n 32. If you want to use an image inside your app, in what directory do you put it?\n \n-\n+    app/assets/images\n \n 33. What helper do you use to create a form to edit or create a specific resource?\n \n-\n+    form_for\n+    http://edgeguides.rubyonrails.org/form_helpers.html#binding-a-form-to-an-object\n \n 34. What does this mean? `||=`\n \n+    That deals with memoization, which is an optimization technique used to limit the amount of network calls you have to make. You can use it as\n \n+        @current_user ||= User.find_by(email: \"guest@guest.com\")\n \n-35. What is your nickname? If you don't have one, what do you wish it was?\n+    This breaks down to @current_user = @current_user || (or) User.find_by(email: \"guest@guest.com\")\n+\n+    The network will only be contacted the first time to set @current_user, and then future calls will only occur on the instance variable. This way the network is not being pinged repeatedly.\n \n \n+35. What is your nickname? If you don't have one, what do you wish it was?\n+\n+    I have several: K Swizzie, swizzle sticks, Swartzie Poo, clutch, cotton\n \n 36. What is a scope? Please provide one example.\n \n+    Used for repetitive database queries and called on like a method. They are defined within the class in the model section.\n+\n+    class Board < ActiveRecord::Base\n+        scope :id, -> { order('id asc')}","path":"HalfWayChallenge.md","position":202,"original_position":202,"commit_id":"8800c744dafccf811c058575c1e381f349c4c699","original_commit_id":"154b9c7a3651555ec208480187a5fd9e65907e50","user":{"login":"brianburridge","id":62898,"avatar_url":"https://avatars.githubusercontent.com/u/62898?v=3","gravatar_id":"","url":"https://api.github.com/users/brianburridge","html_url":"https://github.com/brianburridge","followers_url":"https://api.github.com/users/brianburridge/followers","following_url":"https://api.github.com/users/brianburridge/following{/other_user}","gists_url":"https://api.github.com/users/brianburridge/gists{/gist_id}","starred_url":"https://api.github.com/users/brianburridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianburridge/subscriptions","organizations_url":"https://api.github.com/users/brianburridge/orgs","repos_url":"https://api.github.com/users/brianburridge/repos","events_url":"https://api.github.com/users/brianburridge/events{/privacy}","received_events_url":"https://api.github.com/users/brianburridge/received_events","type":"User","site_admin":false},"body":"this is a slightly odd scope. It will work, but, it doesn't really \"scope\" the query, or filter, based on conditions. Since it just provides an order I would probably want to name it some that implies that.","created_at":"2015-03-09T20:24:23Z","updated_at":"2015-03-09T20:24:23Z","html_url":"https://github.com/theironyard-tampabay/Jan2015/pull/3#discussion_r26071792","pull_request_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls/comments/26071792"},"html":{"href":"https://github.com/theironyard-tampabay/Jan2015/pull/3#discussion_r26071792"},"pull_request":{"href":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls/3","id":30723404,"html_url":"https://github.com/theironyard-tampabay/Jan2015/pull/3","diff_url":"https://github.com/theironyard-tampabay/Jan2015/pull/3.diff","patch_url":"https://github.com/theironyard-tampabay/Jan2015/pull/3.patch","issue_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/issues/3","number":3,"state":"open","locked":false,"title":"Answered the questions.","user":{"login":"kjswartz","id":9609631,"avatar_url":"https://avatars.githubusercontent.com/u/9609631?v=3","gravatar_id":"","url":"https://api.github.com/users/kjswartz","html_url":"https://github.com/kjswartz","followers_url":"https://api.github.com/users/kjswartz/followers","following_url":"https://api.github.com/users/kjswartz/following{/other_user}","gists_url":"https://api.github.com/users/kjswartz/gists{/gist_id}","starred_url":"https://api.github.com/users/kjswartz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjswartz/subscriptions","organizations_url":"https://api.github.com/users/kjswartz/orgs","repos_url":"https://api.github.com/users/kjswartz/repos","events_url":"https://api.github.com/users/kjswartz/events{/privacy}","received_events_url":"https://api.github.com/users/kjswartz/received_events","type":"User","site_admin":false},"body":"Answered all questions. ","created_at":"2015-03-08T17:53:29Z","updated_at":"2015-03-09T20:24:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba212501decd89c60060471af376fbb1baf0b8c3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls/3/commits","review_comments_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls/3/comments","review_comment_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/issues/3/comments","statuses_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/statuses/8800c744dafccf811c058575c1e381f349c4c699","head":{"label":"kjswartz:master","ref":"master","sha":"8800c744dafccf811c058575c1e381f349c4c699","user":{"login":"kjswartz","id":9609631,"avatar_url":"https://avatars.githubusercontent.com/u/9609631?v=3","gravatar_id":"","url":"https://api.github.com/users/kjswartz","html_url":"https://github.com/kjswartz","followers_url":"https://api.github.com/users/kjswartz/followers","following_url":"https://api.github.com/users/kjswartz/following{/other_user}","gists_url":"https://api.github.com/users/kjswartz/gists{/gist_id}","starred_url":"https://api.github.com/users/kjswartz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjswartz/subscriptions","organizations_url":"https://api.github.com/users/kjswartz/orgs","repos_url":"https://api.github.com/users/kjswartz/repos","events_url":"https://api.github.com/users/kjswartz/events{/privacy}","received_events_url":"https://api.github.com/users/kjswartz/received_events","type":"User","site_admin":false},"repo":{"id":31728346,"name":"Jan2015","full_name":"kjswartz/Jan2015","owner":{"login":"kjswartz","id":9609631,"avatar_url":"https://avatars.githubusercontent.com/u/9609631?v=3","gravatar_id":"","url":"https://api.github.com/users/kjswartz","html_url":"https://github.com/kjswartz","followers_url":"https://api.github.com/users/kjswartz/followers","following_url":"https://api.github.com/users/kjswartz/following{/other_user}","gists_url":"https://api.github.com/users/kjswartz/gists{/gist_id}","starred_url":"https://api.github.com/users/kjswartz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjswartz/subscriptions","organizations_url":"https://api.github.com/users/kjswartz/orgs","repos_url":"https://api.github.com/users/kjswartz/repos","events_url":"https://api.github.com/users/kjswartz/events{/privacy}","received_events_url":"https://api.github.com/users/kjswartz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kjswartz/Jan2015","description":"","fork":true,"url":"https://api.github.com/repos/kjswartz/Jan2015","forks_url":"https://api.github.com/repos/kjswartz/Jan2015/forks","keys_url":"https://api.github.com/repos/kjswartz/Jan2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kjswartz/Jan2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kjswartz/Jan2015/teams","hooks_url":"https://api.github.com/repos/kjswartz/Jan2015/hooks","issue_events_url":"https://api.github.com/repos/kjswartz/Jan2015/issues/events{/number}","events_url":"https://api.github.com/repos/kjswartz/Jan2015/events","assignees_url":"https://api.github.com/repos/kjswartz/Jan2015/assignees{/user}","branches_url":"https://api.github.com/repos/kjswartz/Jan2015/branches{/branch}","tags_url":"https://api.github.com/repos/kjswartz/Jan2015/tags","blobs_url":"https://api.github.com/repos/kjswartz/Jan2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kjswartz/Jan2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kjswartz/Jan2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/kjswartz/Jan2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kjswartz/Jan2015/statuses/{sha}","languages_url":"https://api.github.com/repos/kjswartz/Jan2015/languages","stargazers_url":"https://api.github.com/repos/kjswartz/Jan2015/stargazers","contributors_url":"https://api.github.com/repos/kjswartz/Jan2015/contributors","subscribers_url":"https://api.github.com/repos/kjswartz/Jan2015/subscribers","subscription_url":"https://api.github.com/repos/kjswartz/Jan2015/subscription","commits_url":"https://api.github.com/repos/kjswartz/Jan2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/kjswartz/Jan2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/kjswartz/Jan2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/kjswartz/Jan2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/kjswartz/Jan2015/contents/{+path}","compare_url":"https://api.github.com/repos/kjswartz/Jan2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kjswartz/Jan2015/merges","archive_url":"https://api.github.com/repos/kjswartz/Jan2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kjswartz/Jan2015/downloads","issues_url":"https://api.github.com/repos/kjswartz/Jan2015/issues{/number}","pulls_url":"https://api.github.com/repos/kjswartz/Jan2015/pulls{/number}","milestones_url":"https://api.github.com/repos/kjswartz/Jan2015/milestones{/number}","notifications_url":"https://api.github.com/repos/kjswartz/Jan2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kjswartz/Jan2015/labels{/name}","releases_url":"https://api.github.com/repos/kjswartz/Jan2015/releases{/id}","created_at":"2015-03-05T18:11:32Z","updated_at":"2015-03-09T20:21:50Z","pushed_at":"2015-03-09T20:21:50Z","git_url":"git://github.com/kjswartz/Jan2015.git","ssh_url":"git@github.com:kjswartz/Jan2015.git","clone_url":"https://github.com/kjswartz/Jan2015.git","svn_url":"https://github.com/kjswartz/Jan2015","homepage":null,"size":90,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"theironyard-tampabay:master","ref":"master","sha":"5cd3c4481d80dd0a8804ee45485c9f59336b6272","user":{"login":"theironyard-tampabay","id":10505207,"avatar_url":"https://avatars.githubusercontent.com/u/10505207?v=3","gravatar_id":"","url":"https://api.github.com/users/theironyard-tampabay","html_url":"https://github.com/theironyard-tampabay","followers_url":"https://api.github.com/users/theironyard-tampabay/followers","following_url":"https://api.github.com/users/theironyard-tampabay/following{/other_user}","gists_url":"https://api.github.com/users/theironyard-tampabay/gists{/gist_id}","starred_url":"https://api.github.com/users/theironyard-tampabay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theironyard-tampabay/subscriptions","organizations_url":"https://api.github.com/users/theironyard-tampabay/orgs","repos_url":"https://api.github.com/users/theironyard-tampabay/repos","events_url":"https://api.github.com/users/theironyard-tampabay/events{/privacy}","received_events_url":"https://api.github.com/users/theironyard-tampabay/received_events","type":"Organization","site_admin":false},"repo":{"id":29155665,"name":"Jan2015","full_name":"theironyard-tampabay/Jan2015","owner":{"login":"theironyard-tampabay","id":10505207,"avatar_url":"https://avatars.githubusercontent.com/u/10505207?v=3","gravatar_id":"","url":"https://api.github.com/users/theironyard-tampabay","html_url":"https://github.com/theironyard-tampabay","followers_url":"https://api.github.com/users/theironyard-tampabay/followers","following_url":"https://api.github.com/users/theironyard-tampabay/following{/other_user}","gists_url":"https://api.github.com/users/theironyard-tampabay/gists{/gist_id}","starred_url":"https://api.github.com/users/theironyard-tampabay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theironyard-tampabay/subscriptions","organizations_url":"https://api.github.com/users/theironyard-tampabay/orgs","repos_url":"https://api.github.com/users/theironyard-tampabay/repos","events_url":"https://api.github.com/users/theironyard-tampabay/events{/privacy}","received_events_url":"https://api.github.com/users/theironyard-tampabay/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theironyard-tampabay/Jan2015","description":"","fork":false,"url":"https://api.github.com/repos/theironyard-tampabay/Jan2015","forks_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/forks","keys_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/teams","hooks_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/hooks","issue_events_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/issues/events{/number}","events_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/events","assignees_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/assignees{/user}","branches_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/branches{/branch}","tags_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/tags","blobs_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/statuses/{sha}","languages_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/languages","stargazers_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/stargazers","contributors_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/contributors","subscribers_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/subscribers","subscription_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/subscription","commits_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/contents/{+path}","compare_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/merges","archive_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/downloads","issues_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/issues{/number}","pulls_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls{/number}","milestones_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/milestones{/number}","notifications_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/labels{/name}","releases_url":"https://api.github.com/repos/theironyard-tampabay/Jan2015/releases{/id}","created_at":"2015-01-12T20:36:10Z","updated_at":"2015-03-06T19:27:46Z","pushed_at":"2015-03-06T19:27:46Z","git_url":"git://github.com/theironyard-tampabay/Jan2015.git","ssh_url":"git@github.com:theironyard-tampabay/Jan2015.git","clone_url":"https://github.com/theironyard-tampabay/Jan2015.git","svn_url":"https://github.com/theironyard-tampabay/Jan2015","homepage":null,"size":262,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls/3"},"html":{"href":"https://github.com/theironyard-tampabay/Jan2015/pull/3"},"issue":{"href":"https://api.github.com/repos/theironyard-tampabay/Jan2015/issues/3"},"comments":{"href":"https://api.github.com/repos/theironyard-tampabay/Jan2015/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theironyard-tampabay/Jan2015/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/theironyard-tampabay/Jan2015/statuses/8800c744dafccf811c058575c1e381f349c4c699"}}}}