{"action":"created","comment":{"url":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls/comments/47453513","id":47453513,"diff_hunk":"@@ -0,0 +1,58 @@\n+module AdoptionApplicationsHelper \n+  def us_states\n+    [\n+      ['Alabama', 'AL'],\n+      ['Alaska', 'AK'],\n+      ['Arizona', 'AZ'],\n+      ['Arkansas', 'AR'],\n+      ['California', 'CA'],\n+      ['Colorado', 'CO'],\n+      ['Connecticut', 'CT'],\n+      ['Delaware', 'DE'],\n+      ['District of Columbia', 'DC'],\n+      ['Florida', 'FL'],\n+      ['Georgia', 'GA'],\n+      ['Hawaii', 'HI'],\n+      ['Idaho', 'ID'],\n+      ['Illinois', 'IL'],\n+      ['Indiana', 'IN'],\n+      ['Iowa', 'IA'],\n+      ['Kansas', 'KS'],\n+      ['Kentucky', 'KY'],\n+      ['Louisiana', 'LA'],\n+      ['Maine', 'ME'],\n+      ['Maryland', 'MD'],\n+      ['Massachusetts', 'MA'],\n+      ['Michigan', 'MI'],\n+      ['Minnesota', 'MN'],\n+      ['Mississippi', 'MS'],\n+      ['Missouri', 'MO'],\n+      ['Montana', 'MT'],\n+      ['Nebraska', 'NE'],\n+      ['Nevada', 'NV'],\n+      ['New Hampshire', 'NH'],\n+      ['New Jersey', 'NJ'],\n+      ['New Mexico', 'NM'],\n+      ['New York', 'NY'],\n+      ['North Carolina', 'NC'],\n+      ['North Dakota', 'ND'],\n+      ['Ohio', 'OH'],\n+      ['Oklahoma', 'OK'],\n+      ['Oregon', 'OR'],\n+      ['Pennsylvania', 'PA'],\n+      ['Puerto Rico', 'PR'],\n+      ['Rhode Island', 'RI'],\n+      ['South Carolina', 'SC'],\n+      ['South Dakota', 'SD'],\n+      ['Tennessee', 'TN'],\n+      ['Texas', 'TX'],\n+      ['Utah', 'UT'],\n+      ['Vermont', 'VT'],\n+      ['Virginia', 'VA'],","path":"app/helpers/adoption_applications_helper.rb","position":51,"original_position":51,"commit_id":"5f9f9ff6822e4bb151d7ac496874c38506b8789a","original_commit_id":"5f9f9ff6822e4bb151d7ac496874c38506b8789a","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.<br>Use `%w` or `%W` for array of words.","created_at":"2015-12-14T00:17:40Z","updated_at":"2015-12-14T00:17:40Z","html_url":"https://github.com/JessSumner/any_rat_rescue/pull/8#discussion_r47453513","pull_request_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls/comments/47453513"},"html":{"href":"https://github.com/JessSumner/any_rat_rescue/pull/8#discussion_r47453513"},"pull_request":{"href":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls/8","id":53514505,"html_url":"https://github.com/JessSumner/any_rat_rescue/pull/8","diff_url":"https://github.com/JessSumner/any_rat_rescue/pull/8.diff","patch_url":"https://github.com/JessSumner/any_rat_rescue/pull/8.patch","issue_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/issues/8","number":8,"state":"open","locked":false,"title":"Adoption Application","user":{"login":"JessSumner","id":11034063,"avatar_url":"https://avatars.githubusercontent.com/u/11034063?v=3","gravatar_id":"","url":"https://api.github.com/users/JessSumner","html_url":"https://github.com/JessSumner","followers_url":"https://api.github.com/users/JessSumner/followers","following_url":"https://api.github.com/users/JessSumner/following{/other_user}","gists_url":"https://api.github.com/users/JessSumner/gists{/gist_id}","starred_url":"https://api.github.com/users/JessSumner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessSumner/subscriptions","organizations_url":"https://api.github.com/users/JessSumner/orgs","repos_url":"https://api.github.com/users/JessSumner/repos","events_url":"https://api.github.com/users/JessSumner/events{/privacy}","received_events_url":"https://api.github.com/users/JessSumner/received_events","type":"User","site_admin":false},"body":"Why:\nThe rescue wants all adopters to fill out an application form. They want to form to provide contact information and details on their experience with rats.\n\nThis PR:\nCreates an application form using form_for helpers.\nThe data is saved in a adoption application model.\nContact information fields are validated as they are crucial.\nError messages will display if these fields are left empty or incorrectly filled out.\nFlash messages display if the application is saved and the user is redirected to the rat_adoptions page.\nIf the form cannot be saved a flash message is displayed along with the errors.","created_at":"2015-12-14T00:17:14Z","updated_at":"2015-12-14T00:17:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls/8/commits","review_comments_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls/8/comments","review_comment_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/issues/8/comments","statuses_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/statuses/5f9f9ff6822e4bb151d7ac496874c38506b8789a","head":{"label":"JessSumner:adoption-application","ref":"adoption-application","sha":"5f9f9ff6822e4bb151d7ac496874c38506b8789a","user":{"login":"JessSumner","id":11034063,"avatar_url":"https://avatars.githubusercontent.com/u/11034063?v=3","gravatar_id":"","url":"https://api.github.com/users/JessSumner","html_url":"https://github.com/JessSumner","followers_url":"https://api.github.com/users/JessSumner/followers","following_url":"https://api.github.com/users/JessSumner/following{/other_user}","gists_url":"https://api.github.com/users/JessSumner/gists{/gist_id}","starred_url":"https://api.github.com/users/JessSumner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessSumner/subscriptions","organizations_url":"https://api.github.com/users/JessSumner/orgs","repos_url":"https://api.github.com/users/JessSumner/repos","events_url":"https://api.github.com/users/JessSumner/events{/privacy}","received_events_url":"https://api.github.com/users/JessSumner/received_events","type":"User","site_admin":false},"repo":{"id":39171335,"name":"any_rat_rescue","full_name":"JessSumner/any_rat_rescue","owner":{"login":"JessSumner","id":11034063,"avatar_url":"https://avatars.githubusercontent.com/u/11034063?v=3","gravatar_id":"","url":"https://api.github.com/users/JessSumner","html_url":"https://github.com/JessSumner","followers_url":"https://api.github.com/users/JessSumner/followers","following_url":"https://api.github.com/users/JessSumner/following{/other_user}","gists_url":"https://api.github.com/users/JessSumner/gists{/gist_id}","starred_url":"https://api.github.com/users/JessSumner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessSumner/subscriptions","organizations_url":"https://api.github.com/users/JessSumner/orgs","repos_url":"https://api.github.com/users/JessSumner/repos","events_url":"https://api.github.com/users/JessSumner/events{/privacy}","received_events_url":"https://api.github.com/users/JessSumner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JessSumner/any_rat_rescue","description":"Learning by making a web app for a rat rescue.","fork":false,"url":"https://api.github.com/repos/JessSumner/any_rat_rescue","forks_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/forks","keys_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/teams","hooks_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/hooks","issue_events_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/issues/events{/number}","events_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/events","assignees_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/assignees{/user}","branches_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/branches{/branch}","tags_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/tags","blobs_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/git/refs{/sha}","trees_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/statuses/{sha}","languages_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/languages","stargazers_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/stargazers","contributors_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/contributors","subscribers_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/subscribers","subscription_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/subscription","commits_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/commits{/sha}","git_commits_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/git/commits{/sha}","comments_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/comments{/number}","issue_comment_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/issues/comments{/number}","contents_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/contents/{+path}","compare_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/merges","archive_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/downloads","issues_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/issues{/number}","pulls_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls{/number}","milestones_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/milestones{/number}","notifications_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/labels{/name}","releases_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/releases{/id}","created_at":"2015-07-16T02:07:33Z","updated_at":"2015-07-16T02:08:22Z","pushed_at":"2015-12-14T00:17:14Z","git_url":"git://github.com/JessSumner/any_rat_rescue.git","ssh_url":"git@github.com:JessSumner/any_rat_rescue.git","clone_url":"https://github.com/JessSumner/any_rat_rescue.git","svn_url":"https://github.com/JessSumner/any_rat_rescue","homepage":null,"size":248,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"JessSumner:master","ref":"master","sha":"676ec139c30c7f64cc0b329ecf57bbb0ea988147","user":{"login":"JessSumner","id":11034063,"avatar_url":"https://avatars.githubusercontent.com/u/11034063?v=3","gravatar_id":"","url":"https://api.github.com/users/JessSumner","html_url":"https://github.com/JessSumner","followers_url":"https://api.github.com/users/JessSumner/followers","following_url":"https://api.github.com/users/JessSumner/following{/other_user}","gists_url":"https://api.github.com/users/JessSumner/gists{/gist_id}","starred_url":"https://api.github.com/users/JessSumner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessSumner/subscriptions","organizations_url":"https://api.github.com/users/JessSumner/orgs","repos_url":"https://api.github.com/users/JessSumner/repos","events_url":"https://api.github.com/users/JessSumner/events{/privacy}","received_events_url":"https://api.github.com/users/JessSumner/received_events","type":"User","site_admin":false},"repo":{"id":39171335,"name":"any_rat_rescue","full_name":"JessSumner/any_rat_rescue","owner":{"login":"JessSumner","id":11034063,"avatar_url":"https://avatars.githubusercontent.com/u/11034063?v=3","gravatar_id":"","url":"https://api.github.com/users/JessSumner","html_url":"https://github.com/JessSumner","followers_url":"https://api.github.com/users/JessSumner/followers","following_url":"https://api.github.com/users/JessSumner/following{/other_user}","gists_url":"https://api.github.com/users/JessSumner/gists{/gist_id}","starred_url":"https://api.github.com/users/JessSumner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JessSumner/subscriptions","organizations_url":"https://api.github.com/users/JessSumner/orgs","repos_url":"https://api.github.com/users/JessSumner/repos","events_url":"https://api.github.com/users/JessSumner/events{/privacy}","received_events_url":"https://api.github.com/users/JessSumner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JessSumner/any_rat_rescue","description":"Learning by making a web app for a rat rescue.","fork":false,"url":"https://api.github.com/repos/JessSumner/any_rat_rescue","forks_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/forks","keys_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/teams","hooks_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/hooks","issue_events_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/issues/events{/number}","events_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/events","assignees_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/assignees{/user}","branches_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/branches{/branch}","tags_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/tags","blobs_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/git/refs{/sha}","trees_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/statuses/{sha}","languages_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/languages","stargazers_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/stargazers","contributors_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/contributors","subscribers_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/subscribers","subscription_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/subscription","commits_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/commits{/sha}","git_commits_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/git/commits{/sha}","comments_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/comments{/number}","issue_comment_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/issues/comments{/number}","contents_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/contents/{+path}","compare_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/merges","archive_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/downloads","issues_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/issues{/number}","pulls_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls{/number}","milestones_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/milestones{/number}","notifications_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/labels{/name}","releases_url":"https://api.github.com/repos/JessSumner/any_rat_rescue/releases{/id}","created_at":"2015-07-16T02:07:33Z","updated_at":"2015-07-16T02:08:22Z","pushed_at":"2015-12-14T00:17:14Z","git_url":"git://github.com/JessSumner/any_rat_rescue.git","ssh_url":"git@github.com:JessSumner/any_rat_rescue.git","clone_url":"https://github.com/JessSumner/any_rat_rescue.git","svn_url":"https://github.com/JessSumner/any_rat_rescue","homepage":null,"size":248,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls/8"},"html":{"href":"https://github.com/JessSumner/any_rat_rescue/pull/8"},"issue":{"href":"https://api.github.com/repos/JessSumner/any_rat_rescue/issues/8"},"comments":{"href":"https://api.github.com/repos/JessSumner/any_rat_rescue/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JessSumner/any_rat_rescue/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/JessSumner/any_rat_rescue/statuses/5f9f9ff6822e4bb151d7ac496874c38506b8789a"}}}}