{"action":"created","comment":{"url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/comments/134956961","pull_request_review_id":58306736,"id":134956961,"diff_hunk":"@@ -0,0 +1,19 @@\n+class ConferenceAttendancesController < ApplicationController\n+\n+  def update\n+    @conference_attendance = ConferenceAttendance.find(attendance_params[:id])\n+    @team = Team.find(attendance_params[:team_id])\n+\n+    if @conference_attendance.update_attributes(attendance_params)\n+      redirect_to @team, notice: 'Your attendance was successfully recorded.'\n+    else\n+      render json: @team.errors, status: :unprocessable_entity","path":"app/controllers/conference_attendances_controller.rb","position":10,"original_position":10,"commit_id":"0b4384e73bddedbc2c032acff668bea13d500081","original_commit_id":"0b4384e73bddedbc2c032acff668bea13d500081","user":{"login":"michaelem","id":182228,"avatar_url":"https://avatars3.githubusercontent.com/u/182228?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelem","html_url":"https://github.com/michaelem","followers_url":"https://api.github.com/users/michaelem/followers","following_url":"https://api.github.com/users/michaelem/following{/other_user}","gists_url":"https://api.github.com/users/michaelem/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelem/subscriptions","organizations_url":"https://api.github.com/users/michaelem/orgs","repos_url":"https://api.github.com/users/michaelem/repos","events_url":"https://api.github.com/users/michaelem/events{/privacy}","received_events_url":"https://api.github.com/users/michaelem/received_events","type":"User","site_admin":false},"body":"I presume that using `@team.errors` is probably inteded to be `@conference_attendance`? `@team` is not saved/validated in this action so it can not have any errors.","created_at":"2017-08-24T08:34:06Z","updated_at":"2017-08-24T08:46:04Z","html_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/pull/827#discussion_r134956961","pull_request_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/827","_links":{"self":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/comments/134956961"},"html":{"href":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/pull/827#discussion_r134956961"},"pull_request":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/827"}}},"pull_request":{"url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/827","id":136767557,"html_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/pull/827","diff_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/pull/827.diff","patch_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/pull/827.patch","issue_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/827","number":827,"state":"open","locked":false,"title":"Conferences/accepting rejecting","user":{"login":"branquinhoaa","id":15239141,"avatar_url":"https://avatars0.githubusercontent.com/u/15239141?v=4","gravatar_id":"","url":"https://api.github.com/users/branquinhoaa","html_url":"https://github.com/branquinhoaa","followers_url":"https://api.github.com/users/branquinhoaa/followers","following_url":"https://api.github.com/users/branquinhoaa/following{/other_user}","gists_url":"https://api.github.com/users/branquinhoaa/gists{/gist_id}","starred_url":"https://api.github.com/users/branquinhoaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/branquinhoaa/subscriptions","organizations_url":"https://api.github.com/users/branquinhoaa/orgs","repos_url":"https://api.github.com/users/branquinhoaa/repos","events_url":"https://api.github.com/users/branquinhoaa/events{/privacy}","received_events_url":"https://api.github.com/users/branquinhoaa/received_events","type":"User","site_admin":false},"body":"PR related to the issue #772\r\n- include an option for team students reject/accept a conference offer.\r\n- include a tag in teams/view to show if a team accepted or rejected a conference offer.\r\n- include descriptions into conference headers\r\n- include new fields into exporters\r\n## new views\r\n![3](https://user-images.githubusercontent.com/15239141/29522932-859b8db2-8661-11e7-9ede-6ab24efb4417.png)\r\n![2](https://user-images.githubusercontent.com/15239141/29522935-86818114-8661-11e7-8704-06da232b112e.png)\r\n![1](https://user-images.githubusercontent.com/15239141/29522937-88ea0a7a-8661-11e7-834e-e980f822a7fb.png)\r\n\r\n","created_at":"2017-08-21T14:12:07Z","updated_at":"2017-08-24T08:46:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1d6273a6160d49d153a46612eaab4e762f1cbb0","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/827/commits","review_comments_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/827/comments","review_comment_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/827/comments","statuses_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/statuses/0b4384e73bddedbc2c032acff668bea13d500081","head":{"label":"branquinhoaa:conferences/accepting-rejecting","ref":"conferences/accepting-rejecting","sha":"0b4384e73bddedbc2c032acff668bea13d500081","user":{"login":"branquinhoaa","id":15239141,"avatar_url":"https://avatars0.githubusercontent.com/u/15239141?v=4","gravatar_id":"","url":"https://api.github.com/users/branquinhoaa","html_url":"https://github.com/branquinhoaa","followers_url":"https://api.github.com/users/branquinhoaa/followers","following_url":"https://api.github.com/users/branquinhoaa/following{/other_user}","gists_url":"https://api.github.com/users/branquinhoaa/gists{/gist_id}","starred_url":"https://api.github.com/users/branquinhoaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/branquinhoaa/subscriptions","organizations_url":"https://api.github.com/users/branquinhoaa/orgs","repos_url":"https://api.github.com/users/branquinhoaa/repos","events_url":"https://api.github.com/users/branquinhoaa/events{/privacy}","received_events_url":"https://api.github.com/users/branquinhoaa/received_events","type":"User","site_admin":false},"repo":{"id":96063536,"name":"rgsoc-teams","full_name":"branquinhoaa/rgsoc-teams","owner":{"login":"branquinhoaa","id":15239141,"avatar_url":"https://avatars0.githubusercontent.com/u/15239141?v=4","gravatar_id":"","url":"https://api.github.com/users/branquinhoaa","html_url":"https://github.com/branquinhoaa","followers_url":"https://api.github.com/users/branquinhoaa/followers","following_url":"https://api.github.com/users/branquinhoaa/following{/other_user}","gists_url":"https://api.github.com/users/branquinhoaa/gists{/gist_id}","starred_url":"https://api.github.com/users/branquinhoaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/branquinhoaa/subscriptions","organizations_url":"https://api.github.com/users/branquinhoaa/orgs","repos_url":"https://api.github.com/users/branquinhoaa/repos","events_url":"https://api.github.com/users/branquinhoaa/events{/privacy}","received_events_url":"https://api.github.com/users/branquinhoaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/branquinhoaa/rgsoc-teams","description":"Teams management and activity ","fork":true,"url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams","forks_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/forks","keys_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/teams","hooks_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/hooks","issue_events_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/issues/events{/number}","events_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/events","assignees_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/assignees{/user}","branches_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/branches{/branch}","tags_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/tags","blobs_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/git/refs{/sha}","trees_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/statuses/{sha}","languages_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/languages","stargazers_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/stargazers","contributors_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/contributors","subscribers_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/subscribers","subscription_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/subscription","commits_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/commits{/sha}","git_commits_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/git/commits{/sha}","comments_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/comments{/number}","issue_comment_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/issues/comments{/number}","contents_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/contents/{+path}","compare_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/merges","archive_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/downloads","issues_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/issues{/number}","pulls_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/pulls{/number}","milestones_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/milestones{/number}","notifications_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/labels{/name}","releases_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/releases{/id}","deployments_url":"https://api.github.com/repos/branquinhoaa/rgsoc-teams/deployments","created_at":"2017-07-03T02:38:40Z","updated_at":"2017-07-03T02:38:42Z","pushed_at":"2017-08-23T12:24:03Z","git_url":"git://github.com/branquinhoaa/rgsoc-teams.git","ssh_url":"git@github.com:branquinhoaa/rgsoc-teams.git","clone_url":"https://github.com/branquinhoaa/rgsoc-teams.git","svn_url":"https://github.com/branquinhoaa/rgsoc-teams","homepage":"https://teams.railsgirlssummerofcode.org","size":7557,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"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":"rails-girls-summer-of-code:master","ref":"master","sha":"e30180d3d3caa91007a2508b4518eed1a6c4ae9c","user":{"login":"rails-girls-summer-of-code","id":4704447,"avatar_url":"https://avatars3.githubusercontent.com/u/4704447?v=4","gravatar_id":"","url":"https://api.github.com/users/rails-girls-summer-of-code","html_url":"https://github.com/rails-girls-summer-of-code","followers_url":"https://api.github.com/users/rails-girls-summer-of-code/followers","following_url":"https://api.github.com/users/rails-girls-summer-of-code/following{/other_user}","gists_url":"https://api.github.com/users/rails-girls-summer-of-code/gists{/gist_id}","starred_url":"https://api.github.com/users/rails-girls-summer-of-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails-girls-summer-of-code/subscriptions","organizations_url":"https://api.github.com/users/rails-girls-summer-of-code/orgs","repos_url":"https://api.github.com/users/rails-girls-summer-of-code/repos","events_url":"https://api.github.com/users/rails-girls-summer-of-code/events{/privacy}","received_events_url":"https://api.github.com/users/rails-girls-summer-of-code/received_events","type":"Organization","site_admin":false},"repo":{"id":10705327,"name":"rgsoc-teams","full_name":"rails-girls-summer-of-code/rgsoc-teams","owner":{"login":"rails-girls-summer-of-code","id":4704447,"avatar_url":"https://avatars3.githubusercontent.com/u/4704447?v=4","gravatar_id":"","url":"https://api.github.com/users/rails-girls-summer-of-code","html_url":"https://github.com/rails-girls-summer-of-code","followers_url":"https://api.github.com/users/rails-girls-summer-of-code/followers","following_url":"https://api.github.com/users/rails-girls-summer-of-code/following{/other_user}","gists_url":"https://api.github.com/users/rails-girls-summer-of-code/gists{/gist_id}","starred_url":"https://api.github.com/users/rails-girls-summer-of-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails-girls-summer-of-code/subscriptions","organizations_url":"https://api.github.com/users/rails-girls-summer-of-code/orgs","repos_url":"https://api.github.com/users/rails-girls-summer-of-code/repos","events_url":"https://api.github.com/users/rails-girls-summer-of-code/events{/privacy}","received_events_url":"https://api.github.com/users/rails-girls-summer-of-code/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams","description":"Teams management and activity ","fork":false,"url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams","forks_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/forks","keys_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/teams","hooks_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/hooks","issue_events_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/events{/number}","events_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/events","assignees_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/assignees{/user}","branches_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/branches{/branch}","tags_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/tags","blobs_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/statuses/{sha}","languages_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/languages","stargazers_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/stargazers","contributors_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/contributors","subscribers_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/subscribers","subscription_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/subscription","commits_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/contents/{+path}","compare_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/merges","archive_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/downloads","issues_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues{/number}","pulls_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls{/number}","milestones_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/milestones{/number}","notifications_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/labels{/name}","releases_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/releases{/id}","deployments_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/deployments","created_at":"2013-06-15T11:13:22Z","updated_at":"2017-07-03T10:39:31Z","pushed_at":"2017-08-23T15:09:26Z","git_url":"git://github.com/rails-girls-summer-of-code/rgsoc-teams.git","ssh_url":"git@github.com:rails-girls-summer-of-code/rgsoc-teams.git","clone_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams.git","svn_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams","homepage":"https://teams.railsgirlssummerofcode.org","size":7463,"stargazers_count":36,"watchers_count":36,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":100,"mirror_url":null,"open_issues_count":70,"forks":100,"open_issues":70,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/827"},"html":{"href":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/pull/827"},"issue":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/827"},"comments":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/827/comments"},"review_comments":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/827/comments"},"review_comment":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/pulls/827/commits"},"statuses":{"href":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/statuses/0b4384e73bddedbc2c032acff668bea13d500081"}}}}
{"actor":{"display_login":"michaelem"}}