{"action":"created","comment":{"url":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls/comments/49716323","id":49716323,"diff_hunk":"@@ -9,25 +9,24 @@\n   <li>tasks and hours</li>\n </ul>\n \n-<form action=\"/select_soc_codes\" method=\"get\">\n-  <div class=\"form-group \">\n+<%= form_for @report do |f| %>\n+  <div class=\"form-group <% if @error %>error<%end%>\">\n     <label for=\"id_sector_form-sector_0\">\n       <span class=\"heading-small\">Work, skills and interests</span>\n+      <% if @error %>\n+        <span class=\"error-message\"><%= @error %></spsan>\n+      <% end %>\n     </label>\n     <ul class=\"multi-entry-text-input\">\n-    <li>\n-      <input type=\"text\" class=\"form-control\">\n-    </li>\n-    <li>\n-      <input type=\"text\" class=\"form-control\">\n-    </li>\n-    <li>\n-      <input type=\"text\" class=\"form-control\">\n-    </li>\n+    <% (1..3).each do |index| %>\n+      <li>\n+        <%= text_field_tag \"keywords[#{index}]\", nil, class: 'form-control', \"title\": \"Work, skills and interests #{index}\" %>","path":"app/views/reports/new.html.erb","position":26,"original_position":26,"commit_id":"fe5c9015750e957df95df81934976c0bfc410a9c","original_commit_id":"fe5c9015750e957df95df81934976c0bfc410a9c","user":{"login":"gjvis","id":418277,"avatar_url":"https://avatars.githubusercontent.com/u/418277?v=3","gravatar_id":"","url":"https://api.github.com/users/gjvis","html_url":"https://github.com/gjvis","followers_url":"https://api.github.com/users/gjvis/followers","following_url":"https://api.github.com/users/gjvis/following{/other_user}","gists_url":"https://api.github.com/users/gjvis/gists{/gist_id}","starred_url":"https://api.github.com/users/gjvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjvis/subscriptions","organizations_url":"https://api.github.com/users/gjvis/orgs","repos_url":"https://api.github.com/users/gjvis/repos","events_url":"https://api.github.com/users/gjvis/events{/privacy}","received_events_url":"https://api.github.com/users/gjvis/received_events","type":"User","site_admin":false},"body":"ah that sucks, didn't realise you needed a number in the input name for this to work :rat: :rat: :rat: ","created_at":"2016-01-14T11:39:50Z","updated_at":"2016-01-14T11:39:50Z","html_url":"https://github.com/lm-tools/work-you-could-do/pull/5#discussion_r49716323","pull_request_url":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls/comments/49716323"},"html":{"href":"https://github.com/lm-tools/work-you-could-do/pull/5#discussion_r49716323"},"pull_request":{"href":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls/5","id":55961415,"html_url":"https://github.com/lm-tools/work-you-could-do/pull/5","diff_url":"https://github.com/lm-tools/work-you-could-do/pull/5.diff","patch_url":"https://github.com/lm-tools/work-you-could-do/pull/5.patch","issue_url":"https://api.github.com/repos/lm-tools/work-you-could-do/issues/5","number":5,"state":"open","locked":false,"title":"Replicate django functionality","user":{"login":"camilleldn","id":5455804,"avatar_url":"https://avatars.githubusercontent.com/u/5455804?v=3","gravatar_id":"","url":"https://api.github.com/users/camilleldn","html_url":"https://github.com/camilleldn","followers_url":"https://api.github.com/users/camilleldn/followers","following_url":"https://api.github.com/users/camilleldn/following{/other_user}","gists_url":"https://api.github.com/users/camilleldn/gists{/gist_id}","starred_url":"https://api.github.com/users/camilleldn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camilleldn/subscriptions","organizations_url":"https://api.github.com/users/camilleldn/orgs","repos_url":"https://api.github.com/users/camilleldn/repos","events_url":"https://api.github.com/users/camilleldn/events{/privacy}","received_events_url":"https://api.github.com/users/camilleldn/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-13T21:53:22Z","updated_at":"2016-01-14T11:39:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb18042848df345113528c0c6fe0fec1d8b9208b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls/5/commits","review_comments_url":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls/5/comments","review_comment_url":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lm-tools/work-you-could-do/issues/5/comments","statuses_url":"https://api.github.com/repos/lm-tools/work-you-could-do/statuses/fe5c9015750e957df95df81934976c0bfc410a9c","head":{"label":"lm-tools:replicate-django-functionality","ref":"replicate-django-functionality","sha":"fe5c9015750e957df95df81934976c0bfc410a9c","user":{"login":"lm-tools","id":12998430,"avatar_url":"https://avatars.githubusercontent.com/u/12998430?v=3","gravatar_id":"","url":"https://api.github.com/users/lm-tools","html_url":"https://github.com/lm-tools","followers_url":"https://api.github.com/users/lm-tools/followers","following_url":"https://api.github.com/users/lm-tools/following{/other_user}","gists_url":"https://api.github.com/users/lm-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/lm-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lm-tools/subscriptions","organizations_url":"https://api.github.com/users/lm-tools/orgs","repos_url":"https://api.github.com/users/lm-tools/repos","events_url":"https://api.github.com/users/lm-tools/events{/privacy}","received_events_url":"https://api.github.com/users/lm-tools/received_events","type":"Organization","site_admin":false},"repo":{"id":49418821,"name":"work-you-could-do","full_name":"lm-tools/work-you-could-do","owner":{"login":"lm-tools","id":12998430,"avatar_url":"https://avatars.githubusercontent.com/u/12998430?v=3","gravatar_id":"","url":"https://api.github.com/users/lm-tools","html_url":"https://github.com/lm-tools","followers_url":"https://api.github.com/users/lm-tools/followers","following_url":"https://api.github.com/users/lm-tools/following{/other_user}","gists_url":"https://api.github.com/users/lm-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/lm-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lm-tools/subscriptions","organizations_url":"https://api.github.com/users/lm-tools/orgs","repos_url":"https://api.github.com/users/lm-tools/repos","events_url":"https://api.github.com/users/lm-tools/events{/privacy}","received_events_url":"https://api.github.com/users/lm-tools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lm-tools/work-you-could-do","description":"Work you could do","fork":false,"url":"https://api.github.com/repos/lm-tools/work-you-could-do","forks_url":"https://api.github.com/repos/lm-tools/work-you-could-do/forks","keys_url":"https://api.github.com/repos/lm-tools/work-you-could-do/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lm-tools/work-you-could-do/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lm-tools/work-you-could-do/teams","hooks_url":"https://api.github.com/repos/lm-tools/work-you-could-do/hooks","issue_events_url":"https://api.github.com/repos/lm-tools/work-you-could-do/issues/events{/number}","events_url":"https://api.github.com/repos/lm-tools/work-you-could-do/events","assignees_url":"https://api.github.com/repos/lm-tools/work-you-could-do/assignees{/user}","branches_url":"https://api.github.com/repos/lm-tools/work-you-could-do/branches{/branch}","tags_url":"https://api.github.com/repos/lm-tools/work-you-could-do/tags","blobs_url":"https://api.github.com/repos/lm-tools/work-you-could-do/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lm-tools/work-you-could-do/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lm-tools/work-you-could-do/git/refs{/sha}","trees_url":"https://api.github.com/repos/lm-tools/work-you-could-do/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lm-tools/work-you-could-do/statuses/{sha}","languages_url":"https://api.github.com/repos/lm-tools/work-you-could-do/languages","stargazers_url":"https://api.github.com/repos/lm-tools/work-you-could-do/stargazers","contributors_url":"https://api.github.com/repos/lm-tools/work-you-could-do/contributors","subscribers_url":"https://api.github.com/repos/lm-tools/work-you-could-do/subscribers","subscription_url":"https://api.github.com/repos/lm-tools/work-you-could-do/subscription","commits_url":"https://api.github.com/repos/lm-tools/work-you-could-do/commits{/sha}","git_commits_url":"https://api.github.com/repos/lm-tools/work-you-could-do/git/commits{/sha}","comments_url":"https://api.github.com/repos/lm-tools/work-you-could-do/comments{/number}","issue_comment_url":"https://api.github.com/repos/lm-tools/work-you-could-do/issues/comments{/number}","contents_url":"https://api.github.com/repos/lm-tools/work-you-could-do/contents/{+path}","compare_url":"https://api.github.com/repos/lm-tools/work-you-could-do/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lm-tools/work-you-could-do/merges","archive_url":"https://api.github.com/repos/lm-tools/work-you-could-do/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lm-tools/work-you-could-do/downloads","issues_url":"https://api.github.com/repos/lm-tools/work-you-could-do/issues{/number}","pulls_url":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls{/number}","milestones_url":"https://api.github.com/repos/lm-tools/work-you-could-do/milestones{/number}","notifications_url":"https://api.github.com/repos/lm-tools/work-you-could-do/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lm-tools/work-you-could-do/labels{/name}","releases_url":"https://api.github.com/repos/lm-tools/work-you-could-do/releases{/id}","created_at":"2016-01-11T10:28:49Z","updated_at":"2016-01-11T10:34:12Z","pushed_at":"2016-01-14T11:17:47Z","git_url":"git://github.com/lm-tools/work-you-could-do.git","ssh_url":"git@github.com:lm-tools/work-you-could-do.git","clone_url":"https://github.com/lm-tools/work-you-could-do.git","svn_url":"https://github.com/lm-tools/work-you-could-do","homepage":null,"size":105,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"lm-tools:master","ref":"master","sha":"113483ab2a60d563571f679fe17cd308792c5020","user":{"login":"lm-tools","id":12998430,"avatar_url":"https://avatars.githubusercontent.com/u/12998430?v=3","gravatar_id":"","url":"https://api.github.com/users/lm-tools","html_url":"https://github.com/lm-tools","followers_url":"https://api.github.com/users/lm-tools/followers","following_url":"https://api.github.com/users/lm-tools/following{/other_user}","gists_url":"https://api.github.com/users/lm-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/lm-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lm-tools/subscriptions","organizations_url":"https://api.github.com/users/lm-tools/orgs","repos_url":"https://api.github.com/users/lm-tools/repos","events_url":"https://api.github.com/users/lm-tools/events{/privacy}","received_events_url":"https://api.github.com/users/lm-tools/received_events","type":"Organization","site_admin":false},"repo":{"id":49418821,"name":"work-you-could-do","full_name":"lm-tools/work-you-could-do","owner":{"login":"lm-tools","id":12998430,"avatar_url":"https://avatars.githubusercontent.com/u/12998430?v=3","gravatar_id":"","url":"https://api.github.com/users/lm-tools","html_url":"https://github.com/lm-tools","followers_url":"https://api.github.com/users/lm-tools/followers","following_url":"https://api.github.com/users/lm-tools/following{/other_user}","gists_url":"https://api.github.com/users/lm-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/lm-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lm-tools/subscriptions","organizations_url":"https://api.github.com/users/lm-tools/orgs","repos_url":"https://api.github.com/users/lm-tools/repos","events_url":"https://api.github.com/users/lm-tools/events{/privacy}","received_events_url":"https://api.github.com/users/lm-tools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lm-tools/work-you-could-do","description":"Work you could do","fork":false,"url":"https://api.github.com/repos/lm-tools/work-you-could-do","forks_url":"https://api.github.com/repos/lm-tools/work-you-could-do/forks","keys_url":"https://api.github.com/repos/lm-tools/work-you-could-do/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lm-tools/work-you-could-do/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lm-tools/work-you-could-do/teams","hooks_url":"https://api.github.com/repos/lm-tools/work-you-could-do/hooks","issue_events_url":"https://api.github.com/repos/lm-tools/work-you-could-do/issues/events{/number}","events_url":"https://api.github.com/repos/lm-tools/work-you-could-do/events","assignees_url":"https://api.github.com/repos/lm-tools/work-you-could-do/assignees{/user}","branches_url":"https://api.github.com/repos/lm-tools/work-you-could-do/branches{/branch}","tags_url":"https://api.github.com/repos/lm-tools/work-you-could-do/tags","blobs_url":"https://api.github.com/repos/lm-tools/work-you-could-do/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lm-tools/work-you-could-do/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lm-tools/work-you-could-do/git/refs{/sha}","trees_url":"https://api.github.com/repos/lm-tools/work-you-could-do/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lm-tools/work-you-could-do/statuses/{sha}","languages_url":"https://api.github.com/repos/lm-tools/work-you-could-do/languages","stargazers_url":"https://api.github.com/repos/lm-tools/work-you-could-do/stargazers","contributors_url":"https://api.github.com/repos/lm-tools/work-you-could-do/contributors","subscribers_url":"https://api.github.com/repos/lm-tools/work-you-could-do/subscribers","subscription_url":"https://api.github.com/repos/lm-tools/work-you-could-do/subscription","commits_url":"https://api.github.com/repos/lm-tools/work-you-could-do/commits{/sha}","git_commits_url":"https://api.github.com/repos/lm-tools/work-you-could-do/git/commits{/sha}","comments_url":"https://api.github.com/repos/lm-tools/work-you-could-do/comments{/number}","issue_comment_url":"https://api.github.com/repos/lm-tools/work-you-could-do/issues/comments{/number}","contents_url":"https://api.github.com/repos/lm-tools/work-you-could-do/contents/{+path}","compare_url":"https://api.github.com/repos/lm-tools/work-you-could-do/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lm-tools/work-you-could-do/merges","archive_url":"https://api.github.com/repos/lm-tools/work-you-could-do/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lm-tools/work-you-could-do/downloads","issues_url":"https://api.github.com/repos/lm-tools/work-you-could-do/issues{/number}","pulls_url":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls{/number}","milestones_url":"https://api.github.com/repos/lm-tools/work-you-could-do/milestones{/number}","notifications_url":"https://api.github.com/repos/lm-tools/work-you-could-do/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lm-tools/work-you-could-do/labels{/name}","releases_url":"https://api.github.com/repos/lm-tools/work-you-could-do/releases{/id}","created_at":"2016-01-11T10:28:49Z","updated_at":"2016-01-11T10:34:12Z","pushed_at":"2016-01-14T11:17:47Z","git_url":"git://github.com/lm-tools/work-you-could-do.git","ssh_url":"git@github.com:lm-tools/work-you-could-do.git","clone_url":"https://github.com/lm-tools/work-you-could-do.git","svn_url":"https://github.com/lm-tools/work-you-could-do","homepage":null,"size":105,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/lm-tools/work-you-could-do/pulls/5"},"html":{"href":"https://github.com/lm-tools/work-you-could-do/pull/5"},"issue":{"href":"https://api.github.com/repos/lm-tools/work-you-could-do/issues/5"},"comments":{"href":"https://api.github.com/repos/lm-tools/work-you-could-do/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lm-tools/work-you-could-do/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/lm-tools/work-you-could-do/statuses/fe5c9015750e957df95df81934976c0bfc410a9c"}}}}