{"action":"created","comment":{"url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/comments/32889203","id":32889203,"diff_hunk":"@@ -14,23 +14,37 @@ def initialize\n   private\n \n   def generate_items\n-    30.times do\n-      status = rand(1) == 0 ? \"active\" : \"retired\"\n-      item = Item.create(title: Faker::Commerce.product_name, description: Faker::Hacker.say_something_smart, price: Faker::Number.number(4), availability: status)\n+    # Faker method\n+    # 30.times do\n+    #   status = rand(1) == 0 ? \"active\" : \"retired\"\n+    #   item = Item.create(title: Faker::Commerce.product_name, description: Faker::Hacker.say_something_smart, price: Faker::Number.number(4), availability: status)\n+    #   puts \"Created the item '#{item.title}'.\"\n+    # end\n+\n+    sample_items.each do |item|\n+      Item.create(title: item.title, description: item.description, price: item.price, availability: item.availability, image_file_name: item.image_file_name)\n       puts \"Created the item '#{item.title}'.\"\n     end\n   end\n \n-  # def sample_items\n-    # {\n-    #   \"Absolute Shadow Steak Ramen\" => {title: \"Absolute Shadow Steak Ramen\", description: \"Premium noodle soup for the discerning customer. Does not come with Red Skull or O-Pin.\", price: 1480, availability: \"active\"},\n-    #   \"Chateau Romani\" => {title: \"Chateau Romani\", description: \"One sip and you can tell off anyone that chides you to 'Watch your Magic Meter!'\", price: 560, availability: \"retired\"},\n-    #   \"Chocolate Deceit Cake\" => {title: \"Chocolate Deceit Cake\", description: \"Is the cake a lie? It's up to you to find out... but do you really need to? You're plenty fat already.\", price: 109, availability: \"active\"},\n-    #   \"Columbia Dog\" => {title: \"Columbia Dog\", description: \"An even more all-American version of a classic American favorite. I haven't actually played Bioshock Infinite.\", price: 444, availability: \"retired\"},\n-    #   \"The Dark Descent\" => {title:, description:, price:, availability: },\n-    #   \"Oboro Style Fish Udon\" => {title: \"Oboro Style Fish Udon\", description: \"Breathe the life back into your Life Flame with this noodle dish. Imported from the Japan of the past.\", price: 977, availability: \"active\"},\n-    # }\n-  # end\n+  def sample_items\n+    {\n+      \"Absolute Shadow Ramen\" => {title: \"Absolute Shadow Ramen\", description: \"This treasure of the ramen world was born of a complete reimagining of the soup, its flavor both familiar and brand new.\", price: 1480, availability: \"active\", image_file_name: \"absoluteshadowramen.jpg\"},\n+      \"Axis Mundi Tiramisu\" => {title: \"Axis Mundi Tiramisu\", description: \"We've taken tiramisu to puzzling new heights. In fact it's so high we couldn't get a good picture of it. Also it keeps falling over.\", price: 3570, availability: \"retired\"},\n+      \"Chateau Romani\" => {title: \"Chateau Romani\", description: \"This milk is for adults only. Be glad you don't have to wear the cow mask. On top of that, you can tell off anyone that chides you to 'Watch your Magic Meter!'\", price: 560, availability: \"retired\", image_file_name: \"chateauromani.jpg\"},\n+      \"Chocolate Deceit Cake\" => {title: \"Chocolate Deceit Cake\", description: \"Is the cake a lie? A better question would be whether you want to gain even more weight, you have plenty already.\", price: 109, availability: \"active\", image_file_name: \"chocolatedeceitcake.jpg\"},\n+      \"Hyper Dimension Beef Bowl\" => {title: \"Hyper Dimension Beef Bowl\", description: \"Let this oversized heap of stir-fried beef and rice take you on a very long and spiritual journey through the Meat Dimension.\", price: 2750, availability: \"active\", image_file_name: \"hyperdimensionbeefbowl.jpg\"},\n+      \"Landtrap Salad\" => {title: \"Landtrap Salad\", description: \"In life, the ingredients that went into this may well have eaten you instead. In death, it's all the tastier for it.\", price: 350, availability: \"active\"},\n+      \"Liberty City Bleeder\" => {title: \"Liberty City Bleeder\", description: \"The Heart Stopper needed too much meat to make. This is the next best thing: two 1/4-pound hamburger patties piled high with bacon and all the usual toppings.\", price: 1099, availability: \"active\", image_file_name: \"libertycitybleeder.jpg\"},\n+      \"Minecrafters' Block Cake\" => {title: \"Minecrafters' Block Cake\", description: \"A pastry for the creative mind that is currently out of ideas. Think of it as the physical manifestation of your creativity block... and eat it!\", price: 560, availability: \"active\", image_file_name: \"minecraftersblockcake.jpg\"},\n+      \"Oboro-Style Fish Udon\" => {title: \"Oboro-Style Fish Udon\" \"Cooked using authentic Old Japanese methods, the cultural flavor and quality of these noodles are incredible.\", price: 700, availability: \"retired\", image_file_name: \"oborostylefishudon.jpg\"},\n+      \"Saints Gy-Row\" => {title: \"Saints Gy-Row\", description: \"Spin-roasted lamb cooked Third Street style, with onions, tomatoes, and that tangy Greek condiment.\", price: 890, availability: \"active\", image_file_name: \"saintsgy-row.jpg\"},\n+      \"Sauteed Coeurl\" => {title: \"Sauteed Coeurl\", description: \"The queen of cat monsters also makes for the queen of sautees. At the rate monsters breed, it's also more ethical than say... leopard.\", price: 1230, availability: \"active\"},\n+      \"Smashing Spicy Curry\" => {title: \"Originally from Dream Land, this extremely potent blend of vegetables, chicken, and two dozen spices has found a niche as a powerup in fights.\", price: 880, availability: \"retired\", image_file_name: \"smashingspicycurry.jpg\"},\n+      \"Spark Lemon Sundae\" => {title: \"Spark Lemon Sundae\", description: \"Our prize ice cream dessert, which is so sour it's electric! Unlock more of your inner thunderstorm.\", price: 590, availability: \"active\", image_file_name: \"sparklemonsundae.jpg\"}\n+      \"The Dark Descent\" => {title: \"The Dark Descent\", description: \"Drink. Drink and forget. And don't think about why a cocktail called the \\\"Dark Descent\\\" is light pink. We don’t remember making it, in fact.\", price: 460, availability: \"retired\", image_file_name: \"thedarkdescent.jpg\"}\n+    }","path":"db/seeds.rb","position":46,"original_position":46,"commit_id":"1c843ed3bb291579dfa81dfd2d25e39792059e95","original_commit_id":"1c843ed3bb291579dfa81dfd2d25e39792059e95","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"unexpected token tRCURLY","created_at":"2015-06-21T00:03:29Z","updated_at":"2015-06-21T00:03:29Z","html_url":"https://github.com/sallymacnicholas/dinner_dash/pull/56#discussion_r32889203","pull_request_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/comments/32889203"},"html":{"href":"https://github.com/sallymacnicholas/dinner_dash/pull/56#discussion_r32889203"},"pull_request":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/56","id":38176526,"html_url":"https://github.com/sallymacnicholas/dinner_dash/pull/56","diff_url":"https://github.com/sallymacnicholas/dinner_dash/pull/56.diff","patch_url":"https://github.com/sallymacnicholas/dinner_dash/pull/56.patch","issue_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/56","number":56,"state":"open","locked":false,"title":"Rework seed generate_items to return our items without images","user":{"login":"with-a-k","id":6319591,"avatar_url":"https://avatars.githubusercontent.com/u/6319591?v=3","gravatar_id":"","url":"https://api.github.com/users/with-a-k","html_url":"https://github.com/with-a-k","followers_url":"https://api.github.com/users/with-a-k/followers","following_url":"https://api.github.com/users/with-a-k/following{/other_user}","gists_url":"https://api.github.com/users/with-a-k/gists{/gist_id}","starred_url":"https://api.github.com/users/with-a-k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/with-a-k/subscriptions","organizations_url":"https://api.github.com/users/with-a-k/orgs","repos_url":"https://api.github.com/users/with-a-k/repos","events_url":"https://api.github.com/users/with-a-k/events{/privacy}","received_events_url":"https://api.github.com/users/with-a-k/received_events","type":"User","site_admin":false},"body":"I'm not sure how to attach the images to the items on creation - can someone else handle that?","created_at":"2015-06-20T23:51:25Z","updated_at":"2015-06-21T00:03:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e261026a3af4ee677221103013c51ec37143c7dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/56/commits","review_comments_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/56/comments","review_comment_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/56/comments","statuses_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/statuses/1c843ed3bb291579dfa81dfd2d25e39792059e95","head":{"label":"sallymacnicholas:seed_ourstuff","ref":"seed_ourstuff","sha":"1c843ed3bb291579dfa81dfd2d25e39792059e95","user":{"login":"sallymacnicholas","id":10360728,"avatar_url":"https://avatars.githubusercontent.com/u/10360728?v=3","gravatar_id":"","url":"https://api.github.com/users/sallymacnicholas","html_url":"https://github.com/sallymacnicholas","followers_url":"https://api.github.com/users/sallymacnicholas/followers","following_url":"https://api.github.com/users/sallymacnicholas/following{/other_user}","gists_url":"https://api.github.com/users/sallymacnicholas/gists{/gist_id}","starred_url":"https://api.github.com/users/sallymacnicholas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sallymacnicholas/subscriptions","organizations_url":"https://api.github.com/users/sallymacnicholas/orgs","repos_url":"https://api.github.com/users/sallymacnicholas/repos","events_url":"https://api.github.com/users/sallymacnicholas/events{/privacy}","received_events_url":"https://api.github.com/users/sallymacnicholas/received_events","type":"User","site_admin":false},"repo":{"id":37474175,"name":"dinner_dash","full_name":"sallymacnicholas/dinner_dash","owner":{"login":"sallymacnicholas","id":10360728,"avatar_url":"https://avatars.githubusercontent.com/u/10360728?v=3","gravatar_id":"","url":"https://api.github.com/users/sallymacnicholas","html_url":"https://github.com/sallymacnicholas","followers_url":"https://api.github.com/users/sallymacnicholas/followers","following_url":"https://api.github.com/users/sallymacnicholas/following{/other_user}","gists_url":"https://api.github.com/users/sallymacnicholas/gists{/gist_id}","starred_url":"https://api.github.com/users/sallymacnicholas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sallymacnicholas/subscriptions","organizations_url":"https://api.github.com/users/sallymacnicholas/orgs","repos_url":"https://api.github.com/users/sallymacnicholas/repos","events_url":"https://api.github.com/users/sallymacnicholas/events{/privacy}","received_events_url":"https://api.github.com/users/sallymacnicholas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sallymacnicholas/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/sallymacnicholas/dinner_dash","forks_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/forks","keys_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/teams","hooks_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/events","assignees_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/tags","blobs_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/subscription","commits_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/merges","archive_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/downloads","issues_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/releases{/id}","created_at":"2015-06-15T15:36:31Z","updated_at":"2015-06-20T21:48:47Z","pushed_at":"2015-06-21T00:03:26Z","git_url":"git://github.com/sallymacnicholas/dinner_dash.git","ssh_url":"git@github.com:sallymacnicholas/dinner_dash.git","clone_url":"https://github.com/sallymacnicholas/dinner_dash.git","svn_url":"https://github.com/sallymacnicholas/dinner_dash","homepage":null,"size":900,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":20,"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"sallymacnicholas:master","ref":"master","sha":"dc1f5943b4144ac2bd843e3eea75556a209eab09","user":{"login":"sallymacnicholas","id":10360728,"avatar_url":"https://avatars.githubusercontent.com/u/10360728?v=3","gravatar_id":"","url":"https://api.github.com/users/sallymacnicholas","html_url":"https://github.com/sallymacnicholas","followers_url":"https://api.github.com/users/sallymacnicholas/followers","following_url":"https://api.github.com/users/sallymacnicholas/following{/other_user}","gists_url":"https://api.github.com/users/sallymacnicholas/gists{/gist_id}","starred_url":"https://api.github.com/users/sallymacnicholas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sallymacnicholas/subscriptions","organizations_url":"https://api.github.com/users/sallymacnicholas/orgs","repos_url":"https://api.github.com/users/sallymacnicholas/repos","events_url":"https://api.github.com/users/sallymacnicholas/events{/privacy}","received_events_url":"https://api.github.com/users/sallymacnicholas/received_events","type":"User","site_admin":false},"repo":{"id":37474175,"name":"dinner_dash","full_name":"sallymacnicholas/dinner_dash","owner":{"login":"sallymacnicholas","id":10360728,"avatar_url":"https://avatars.githubusercontent.com/u/10360728?v=3","gravatar_id":"","url":"https://api.github.com/users/sallymacnicholas","html_url":"https://github.com/sallymacnicholas","followers_url":"https://api.github.com/users/sallymacnicholas/followers","following_url":"https://api.github.com/users/sallymacnicholas/following{/other_user}","gists_url":"https://api.github.com/users/sallymacnicholas/gists{/gist_id}","starred_url":"https://api.github.com/users/sallymacnicholas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sallymacnicholas/subscriptions","organizations_url":"https://api.github.com/users/sallymacnicholas/orgs","repos_url":"https://api.github.com/users/sallymacnicholas/repos","events_url":"https://api.github.com/users/sallymacnicholas/events{/privacy}","received_events_url":"https://api.github.com/users/sallymacnicholas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sallymacnicholas/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/sallymacnicholas/dinner_dash","forks_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/forks","keys_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/teams","hooks_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/events","assignees_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/tags","blobs_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/subscription","commits_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/merges","archive_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/downloads","issues_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/releases{/id}","created_at":"2015-06-15T15:36:31Z","updated_at":"2015-06-20T21:48:47Z","pushed_at":"2015-06-21T00:03:26Z","git_url":"git://github.com/sallymacnicholas/dinner_dash.git","ssh_url":"git@github.com:sallymacnicholas/dinner_dash.git","clone_url":"https://github.com/sallymacnicholas/dinner_dash.git","svn_url":"https://github.com/sallymacnicholas/dinner_dash","homepage":null,"size":900,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":20,"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/56"},"html":{"href":"https://github.com/sallymacnicholas/dinner_dash/pull/56"},"issue":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/56"},"comments":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/statuses/1c843ed3bb291579dfa81dfd2d25e39792059e95"}}}}