{"action":"opened","number":1045,"pull_request":{"url":"https://api.github.com/repos/JumpstartLab/curriculum/pulls/1045","id":30630839,"html_url":"https://github.com/JumpstartLab/curriculum/pull/1045","diff_url":"https://github.com/JumpstartLab/curriculum/pull/1045.diff","patch_url":"https://github.com/JumpstartLab/curriculum/pull/1045.patch","issue_url":"https://api.github.com/repos/JumpstartLab/curriculum/issues/1045","number":1045,"state":"open","locked":false,"title":"Merchant Tutorial - Iteration 6: Fixes error that (presumably) is due to old syntax being used","user":{"login":"uschtwill","id":10156948,"avatar_url":"https://avatars.githubusercontent.com/u/10156948?v=3","gravatar_id":"","url":"https://api.github.com/users/uschtwill","html_url":"https://github.com/uschtwill","followers_url":"https://api.github.com/users/uschtwill/followers","following_url":"https://api.github.com/users/uschtwill/following{/other_user}","gists_url":"https://api.github.com/users/uschtwill/gists{/gist_id}","starred_url":"https://api.github.com/users/uschtwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uschtwill/subscriptions","organizations_url":"https://api.github.com/users/uschtwill/orgs","repos_url":"https://api.github.com/users/uschtwill/repos","events_url":"https://api.github.com/users/uschtwill/events{/privacy}","received_events_url":"https://api.github.com/users/uschtwill/received_events","type":"User","site_admin":false},"body":"I spent quite a while on figuring this one out, but apparently the syntax used for this method is out of date, according to: \r\n\r\nhttp://stackoverflow.com/questions/3046607/rails-find-or-create-by-more-than-one-attribute/3046645#3046645.\r\n\r\nI just started coding and this is my first potential contribution to a relevant repo, so please be gentle. :)","created_at":"2015-03-06T09:27:14Z","updated_at":"2015-03-06T09:27:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JumpstartLab/curriculum/pulls/1045/commits","review_comments_url":"https://api.github.com/repos/JumpstartLab/curriculum/pulls/1045/comments","review_comment_url":"https://api.github.com/repos/JumpstartLab/curriculum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JumpstartLab/curriculum/issues/1045/comments","statuses_url":"https://api.github.com/repos/JumpstartLab/curriculum/statuses/e4f5cae971b2dd5bacdeba2e4433b2272491d500","head":{"label":"uschtwill:master","ref":"master","sha":"e4f5cae971b2dd5bacdeba2e4433b2272491d500","user":{"login":"uschtwill","id":10156948,"avatar_url":"https://avatars.githubusercontent.com/u/10156948?v=3","gravatar_id":"","url":"https://api.github.com/users/uschtwill","html_url":"https://github.com/uschtwill","followers_url":"https://api.github.com/users/uschtwill/followers","following_url":"https://api.github.com/users/uschtwill/following{/other_user}","gists_url":"https://api.github.com/users/uschtwill/gists{/gist_id}","starred_url":"https://api.github.com/users/uschtwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uschtwill/subscriptions","organizations_url":"https://api.github.com/users/uschtwill/orgs","repos_url":"https://api.github.com/users/uschtwill/repos","events_url":"https://api.github.com/users/uschtwill/events{/privacy}","received_events_url":"https://api.github.com/users/uschtwill/received_events","type":"User","site_admin":false},"repo":{"id":31761119,"name":"curriculum","full_name":"uschtwill/curriculum","owner":{"login":"uschtwill","id":10156948,"avatar_url":"https://avatars.githubusercontent.com/u/10156948?v=3","gravatar_id":"","url":"https://api.github.com/users/uschtwill","html_url":"https://github.com/uschtwill","followers_url":"https://api.github.com/users/uschtwill/followers","following_url":"https://api.github.com/users/uschtwill/following{/other_user}","gists_url":"https://api.github.com/users/uschtwill/gists{/gist_id}","starred_url":"https://api.github.com/users/uschtwill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uschtwill/subscriptions","organizations_url":"https://api.github.com/users/uschtwill/orgs","repos_url":"https://api.github.com/users/uschtwill/repos","events_url":"https://api.github.com/users/uschtwill/events{/privacy}","received_events_url":"https://api.github.com/users/uschtwill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/uschtwill/curriculum","description":"All of Jumpstart Lab's tutorials and curriculum that we teach.","fork":true,"url":"https://api.github.com/repos/uschtwill/curriculum","forks_url":"https://api.github.com/repos/uschtwill/curriculum/forks","keys_url":"https://api.github.com/repos/uschtwill/curriculum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uschtwill/curriculum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uschtwill/curriculum/teams","hooks_url":"https://api.github.com/repos/uschtwill/curriculum/hooks","issue_events_url":"https://api.github.com/repos/uschtwill/curriculum/issues/events{/number}","events_url":"https://api.github.com/repos/uschtwill/curriculum/events","assignees_url":"https://api.github.com/repos/uschtwill/curriculum/assignees{/user}","branches_url":"https://api.github.com/repos/uschtwill/curriculum/branches{/branch}","tags_url":"https://api.github.com/repos/uschtwill/curriculum/tags","blobs_url":"https://api.github.com/repos/uschtwill/curriculum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uschtwill/curriculum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uschtwill/curriculum/git/refs{/sha}","trees_url":"https://api.github.com/repos/uschtwill/curriculum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uschtwill/curriculum/statuses/{sha}","languages_url":"https://api.github.com/repos/uschtwill/curriculum/languages","stargazers_url":"https://api.github.com/repos/uschtwill/curriculum/stargazers","contributors_url":"https://api.github.com/repos/uschtwill/curriculum/contributors","subscribers_url":"https://api.github.com/repos/uschtwill/curriculum/subscribers","subscription_url":"https://api.github.com/repos/uschtwill/curriculum/subscription","commits_url":"https://api.github.com/repos/uschtwill/curriculum/commits{/sha}","git_commits_url":"https://api.github.com/repos/uschtwill/curriculum/git/commits{/sha}","comments_url":"https://api.github.com/repos/uschtwill/curriculum/comments{/number}","issue_comment_url":"https://api.github.com/repos/uschtwill/curriculum/issues/comments{/number}","contents_url":"https://api.github.com/repos/uschtwill/curriculum/contents/{+path}","compare_url":"https://api.github.com/repos/uschtwill/curriculum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uschtwill/curriculum/merges","archive_url":"https://api.github.com/repos/uschtwill/curriculum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uschtwill/curriculum/downloads","issues_url":"https://api.github.com/repos/uschtwill/curriculum/issues{/number}","pulls_url":"https://api.github.com/repos/uschtwill/curriculum/pulls{/number}","milestones_url":"https://api.github.com/repos/uschtwill/curriculum/milestones{/number}","notifications_url":"https://api.github.com/repos/uschtwill/curriculum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uschtwill/curriculum/labels{/name}","releases_url":"https://api.github.com/repos/uschtwill/curriculum/releases{/id}","created_at":"2015-03-06T09:05:48Z","updated_at":"2015-03-06T09:20:53Z","pushed_at":"2015-03-06T09:20:53Z","git_url":"git://github.com/uschtwill/curriculum.git","ssh_url":"git@github.com:uschtwill/curriculum.git","clone_url":"https://github.com/uschtwill/curriculum.git","svn_url":"https://github.com/uschtwill/curriculum","homepage":"http://tutorials.jumpstartlab.com","size":41916,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"JumpstartLab:master","ref":"master","sha":"a8a868d3ff6e5ee6edcc3c82c7bd32b7f873a34d","user":{"login":"JumpstartLab","id":856601,"avatar_url":"https://avatars.githubusercontent.com/u/856601?v=3","gravatar_id":"","url":"https://api.github.com/users/JumpstartLab","html_url":"https://github.com/JumpstartLab","followers_url":"https://api.github.com/users/JumpstartLab/followers","following_url":"https://api.github.com/users/JumpstartLab/following{/other_user}","gists_url":"https://api.github.com/users/JumpstartLab/gists{/gist_id}","starred_url":"https://api.github.com/users/JumpstartLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JumpstartLab/subscriptions","organizations_url":"https://api.github.com/users/JumpstartLab/orgs","repos_url":"https://api.github.com/users/JumpstartLab/repos","events_url":"https://api.github.com/users/JumpstartLab/events{/privacy}","received_events_url":"https://api.github.com/users/JumpstartLab/received_events","type":"Organization","site_admin":false},"repo":{"id":2288534,"name":"curriculum","full_name":"JumpstartLab/curriculum","owner":{"login":"JumpstartLab","id":856601,"avatar_url":"https://avatars.githubusercontent.com/u/856601?v=3","gravatar_id":"","url":"https://api.github.com/users/JumpstartLab","html_url":"https://github.com/JumpstartLab","followers_url":"https://api.github.com/users/JumpstartLab/followers","following_url":"https://api.github.com/users/JumpstartLab/following{/other_user}","gists_url":"https://api.github.com/users/JumpstartLab/gists{/gist_id}","starred_url":"https://api.github.com/users/JumpstartLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JumpstartLab/subscriptions","organizations_url":"https://api.github.com/users/JumpstartLab/orgs","repos_url":"https://api.github.com/users/JumpstartLab/repos","events_url":"https://api.github.com/users/JumpstartLab/events{/privacy}","received_events_url":"https://api.github.com/users/JumpstartLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JumpstartLab/curriculum","description":"All of Jumpstart Lab's tutorials and curriculum that we teach.","fork":false,"url":"https://api.github.com/repos/JumpstartLab/curriculum","forks_url":"https://api.github.com/repos/JumpstartLab/curriculum/forks","keys_url":"https://api.github.com/repos/JumpstartLab/curriculum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JumpstartLab/curriculum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JumpstartLab/curriculum/teams","hooks_url":"https://api.github.com/repos/JumpstartLab/curriculum/hooks","issue_events_url":"https://api.github.com/repos/JumpstartLab/curriculum/issues/events{/number}","events_url":"https://api.github.com/repos/JumpstartLab/curriculum/events","assignees_url":"https://api.github.com/repos/JumpstartLab/curriculum/assignees{/user}","branches_url":"https://api.github.com/repos/JumpstartLab/curriculum/branches{/branch}","tags_url":"https://api.github.com/repos/JumpstartLab/curriculum/tags","blobs_url":"https://api.github.com/repos/JumpstartLab/curriculum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JumpstartLab/curriculum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JumpstartLab/curriculum/git/refs{/sha}","trees_url":"https://api.github.com/repos/JumpstartLab/curriculum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JumpstartLab/curriculum/statuses/{sha}","languages_url":"https://api.github.com/repos/JumpstartLab/curriculum/languages","stargazers_url":"https://api.github.com/repos/JumpstartLab/curriculum/stargazers","contributors_url":"https://api.github.com/repos/JumpstartLab/curriculum/contributors","subscribers_url":"https://api.github.com/repos/JumpstartLab/curriculum/subscribers","subscription_url":"https://api.github.com/repos/JumpstartLab/curriculum/subscription","commits_url":"https://api.github.com/repos/JumpstartLab/curriculum/commits{/sha}","git_commits_url":"https://api.github.com/repos/JumpstartLab/curriculum/git/commits{/sha}","comments_url":"https://api.github.com/repos/JumpstartLab/curriculum/comments{/number}","issue_comment_url":"https://api.github.com/repos/JumpstartLab/curriculum/issues/comments{/number}","contents_url":"https://api.github.com/repos/JumpstartLab/curriculum/contents/{+path}","compare_url":"https://api.github.com/repos/JumpstartLab/curriculum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JumpstartLab/curriculum/merges","archive_url":"https://api.github.com/repos/JumpstartLab/curriculum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JumpstartLab/curriculum/downloads","issues_url":"https://api.github.com/repos/JumpstartLab/curriculum/issues{/number}","pulls_url":"https://api.github.com/repos/JumpstartLab/curriculum/pulls{/number}","milestones_url":"https://api.github.com/repos/JumpstartLab/curriculum/milestones{/number}","notifications_url":"https://api.github.com/repos/JumpstartLab/curriculum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JumpstartLab/curriculum/labels{/name}","releases_url":"https://api.github.com/repos/JumpstartLab/curriculum/releases{/id}","created_at":"2011-08-29T13:14:09Z","updated_at":"2015-03-05T14:11:37Z","pushed_at":"2015-03-04T04:36:53Z","git_url":"git://github.com/JumpstartLab/curriculum.git","ssh_url":"git@github.com:JumpstartLab/curriculum.git","clone_url":"https://github.com/JumpstartLab/curriculum.git","svn_url":"https://github.com/JumpstartLab/curriculum","homepage":"http://tutorials.jumpstartlab.com","size":41916,"stargazers_count":251,"watchers_count":251,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":323,"mirror_url":null,"open_issues_count":107,"forks":323,"open_issues":107,"watchers":251,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JumpstartLab/curriculum/pulls/1045"},"html":{"href":"https://github.com/JumpstartLab/curriculum/pull/1045"},"issue":{"href":"https://api.github.com/repos/JumpstartLab/curriculum/issues/1045"},"comments":{"href":"https://api.github.com/repos/JumpstartLab/curriculum/issues/1045/comments"},"review_comments":{"href":"https://api.github.com/repos/JumpstartLab/curriculum/pulls/1045/comments"},"review_comment":{"href":"https://api.github.com/repos/JumpstartLab/curriculum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JumpstartLab/curriculum/pulls/1045/commits"},"statuses":{"href":"https://api.github.com/repos/JumpstartLab/curriculum/statuses/e4f5cae971b2dd5bacdeba2e4433b2272491d500"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":3,"changed_files":1}}