{"action":"created","comment":{"url":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls/comments/82502171","pull_request_review_id":3408145,"id":82502171,"diff_hunk":"@@ -0,0 +1,17 @@\n+class UsersController < ApplicationController\n+\n+  def confirm_form\n+    @user = User.new\n+  end\n+  \n+  def confirmation\n+    auth = session['devise.auth']\n+    auth.merge!(info: { email: params[:email] })","path":"app/controllers/users_controller.rb","position":9,"original_position":9,"commit_id":"8ffe374e5b37543536da2274c4f94cef886672c4","original_commit_id":"8ffe374e5b37543536da2274c4f94cef886672c4","user":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars.githubusercontent.com/u/968537?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurennov","html_url":"https://github.com/vkurennov","followers_url":"https://api.github.com/users/vkurennov/followers","following_url":"https://api.github.com/users/vkurennov/following{/other_user}","gists_url":"https://api.github.com/users/vkurennov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurennov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurennov/subscriptions","organizations_url":"https://api.github.com/users/vkurennov/orgs","repos_url":"https://api.github.com/users/vkurennov/repos","events_url":"https://api.github.com/users/vkurennov/events{/privacy}","received_events_url":"https://api.github.com/users/vkurennov/received_events","type":"User","site_admin":false},"body":"Т.к. у тебя форма привязана у юзеру, то параметры передаются во вложенном хеше user, а не просто в params. Посмотри лог сервера на этот запрос. Сделай форму через form_tag без привязки к юзеру, т.к. это не нужно и тогда email будет приходить в params.\r\nСобственно, поэтому nil и возвращается, ведь ты email-то не добавляешь, в params[:email] пусто","created_at":"2016-10-08T13:01:07Z","updated_at":"2016-10-08T13:02:40Z","html_url":"https://github.com/abozhiy/TN_Sample_App/pull/10#discussion_r82502171","pull_request_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls/comments/82502171"},"html":{"href":"https://github.com/abozhiy/TN_Sample_App/pull/10#discussion_r82502171"},"pull_request":{"href":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls/10","id":87710733,"html_url":"https://github.com/abozhiy/TN_Sample_App/pull/10","diff_url":"https://github.com/abozhiy/TN_Sample_App/pull/10.diff","patch_url":"https://github.com/abozhiy/TN_Sample_App/pull/10.patch","issue_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/issues/10","number":10,"state":"open","locked":false,"title":"devise-omniauth","user":{"login":"abozhiy","id":20154523,"avatar_url":"https://avatars.githubusercontent.com/u/20154523?v=3","gravatar_id":"","url":"https://api.github.com/users/abozhiy","html_url":"https://github.com/abozhiy","followers_url":"https://api.github.com/users/abozhiy/followers","following_url":"https://api.github.com/users/abozhiy/following{/other_user}","gists_url":"https://api.github.com/users/abozhiy/gists{/gist_id}","starred_url":"https://api.github.com/users/abozhiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abozhiy/subscriptions","organizations_url":"https://api.github.com/users/abozhiy/orgs","repos_url":"https://api.github.com/users/abozhiy/repos","events_url":"https://api.github.com/users/abozhiy/events{/privacy}","received_events_url":"https://api.github.com/users/abozhiy/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-03T12:50:56Z","updated_at":"2016-10-08T13:02:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"724f43b42f6c65bd69a8b79a10d7af2fb2e65546","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls/10/commits","review_comments_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls/10/comments","review_comment_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls/comments{/number}","comments_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/issues/10/comments","statuses_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/statuses/8ffe374e5b37543536da2274c4f94cef886672c4","head":{"label":"abozhiy:devise-omniauth","ref":"devise-omniauth","sha":"8ffe374e5b37543536da2274c4f94cef886672c4","user":{"login":"abozhiy","id":20154523,"avatar_url":"https://avatars.githubusercontent.com/u/20154523?v=3","gravatar_id":"","url":"https://api.github.com/users/abozhiy","html_url":"https://github.com/abozhiy","followers_url":"https://api.github.com/users/abozhiy/followers","following_url":"https://api.github.com/users/abozhiy/following{/other_user}","gists_url":"https://api.github.com/users/abozhiy/gists{/gist_id}","starred_url":"https://api.github.com/users/abozhiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abozhiy/subscriptions","organizations_url":"https://api.github.com/users/abozhiy/orgs","repos_url":"https://api.github.com/users/abozhiy/repos","events_url":"https://api.github.com/users/abozhiy/events{/privacy}","received_events_url":"https://api.github.com/users/abozhiy/received_events","type":"User","site_admin":false},"repo":{"id":65312098,"name":"TN_Sample_App","full_name":"abozhiy/TN_Sample_App","owner":{"login":"abozhiy","id":20154523,"avatar_url":"https://avatars.githubusercontent.com/u/20154523?v=3","gravatar_id":"","url":"https://api.github.com/users/abozhiy","html_url":"https://github.com/abozhiy","followers_url":"https://api.github.com/users/abozhiy/followers","following_url":"https://api.github.com/users/abozhiy/following{/other_user}","gists_url":"https://api.github.com/users/abozhiy/gists{/gist_id}","starred_url":"https://api.github.com/users/abozhiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abozhiy/subscriptions","organizations_url":"https://api.github.com/users/abozhiy/orgs","repos_url":"https://api.github.com/users/abozhiy/repos","events_url":"https://api.github.com/users/abozhiy/events{/privacy}","received_events_url":"https://api.github.com/users/abozhiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abozhiy/TN_Sample_App","description":null,"fork":false,"url":"https://api.github.com/repos/abozhiy/TN_Sample_App","forks_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/forks","keys_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/teams","hooks_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/hooks","issue_events_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/issues/events{/number}","events_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/events","assignees_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/assignees{/user}","branches_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/branches{/branch}","tags_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/tags","blobs_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/git/refs{/sha}","trees_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/statuses/{sha}","languages_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/languages","stargazers_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/stargazers","contributors_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/contributors","subscribers_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/subscribers","subscription_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/subscription","commits_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/commits{/sha}","git_commits_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/git/commits{/sha}","comments_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/comments{/number}","issue_comment_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/issues/comments{/number}","contents_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/contents/{+path}","compare_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/merges","archive_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/downloads","issues_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/issues{/number}","pulls_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls{/number}","milestones_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/milestones{/number}","notifications_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/labels{/name}","releases_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/releases{/id}","deployments_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/deployments","created_at":"2016-08-09T16:49:47Z","updated_at":"2016-08-09T16:50:16Z","pushed_at":"2016-10-08T10:01:29Z","git_url":"git://github.com/abozhiy/TN_Sample_App.git","ssh_url":"git@github.com:abozhiy/TN_Sample_App.git","clone_url":"https://github.com/abozhiy/TN_Sample_App.git","svn_url":"https://github.com/abozhiy/TN_Sample_App","homepage":null,"size":451,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"abozhiy:master","ref":"master","sha":"951cb44b41f5cd606e07c7b89cf681c19a843e02","user":{"login":"abozhiy","id":20154523,"avatar_url":"https://avatars.githubusercontent.com/u/20154523?v=3","gravatar_id":"","url":"https://api.github.com/users/abozhiy","html_url":"https://github.com/abozhiy","followers_url":"https://api.github.com/users/abozhiy/followers","following_url":"https://api.github.com/users/abozhiy/following{/other_user}","gists_url":"https://api.github.com/users/abozhiy/gists{/gist_id}","starred_url":"https://api.github.com/users/abozhiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abozhiy/subscriptions","organizations_url":"https://api.github.com/users/abozhiy/orgs","repos_url":"https://api.github.com/users/abozhiy/repos","events_url":"https://api.github.com/users/abozhiy/events{/privacy}","received_events_url":"https://api.github.com/users/abozhiy/received_events","type":"User","site_admin":false},"repo":{"id":65312098,"name":"TN_Sample_App","full_name":"abozhiy/TN_Sample_App","owner":{"login":"abozhiy","id":20154523,"avatar_url":"https://avatars.githubusercontent.com/u/20154523?v=3","gravatar_id":"","url":"https://api.github.com/users/abozhiy","html_url":"https://github.com/abozhiy","followers_url":"https://api.github.com/users/abozhiy/followers","following_url":"https://api.github.com/users/abozhiy/following{/other_user}","gists_url":"https://api.github.com/users/abozhiy/gists{/gist_id}","starred_url":"https://api.github.com/users/abozhiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abozhiy/subscriptions","organizations_url":"https://api.github.com/users/abozhiy/orgs","repos_url":"https://api.github.com/users/abozhiy/repos","events_url":"https://api.github.com/users/abozhiy/events{/privacy}","received_events_url":"https://api.github.com/users/abozhiy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abozhiy/TN_Sample_App","description":null,"fork":false,"url":"https://api.github.com/repos/abozhiy/TN_Sample_App","forks_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/forks","keys_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/teams","hooks_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/hooks","issue_events_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/issues/events{/number}","events_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/events","assignees_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/assignees{/user}","branches_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/branches{/branch}","tags_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/tags","blobs_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/git/refs{/sha}","trees_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/statuses/{sha}","languages_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/languages","stargazers_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/stargazers","contributors_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/contributors","subscribers_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/subscribers","subscription_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/subscription","commits_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/commits{/sha}","git_commits_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/git/commits{/sha}","comments_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/comments{/number}","issue_comment_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/issues/comments{/number}","contents_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/contents/{+path}","compare_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/merges","archive_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/downloads","issues_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/issues{/number}","pulls_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls{/number}","milestones_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/milestones{/number}","notifications_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/labels{/name}","releases_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/releases{/id}","deployments_url":"https://api.github.com/repos/abozhiy/TN_Sample_App/deployments","created_at":"2016-08-09T16:49:47Z","updated_at":"2016-08-09T16:50:16Z","pushed_at":"2016-10-08T10:01:29Z","git_url":"git://github.com/abozhiy/TN_Sample_App.git","ssh_url":"git@github.com:abozhiy/TN_Sample_App.git","clone_url":"https://github.com/abozhiy/TN_Sample_App.git","svn_url":"https://github.com/abozhiy/TN_Sample_App","homepage":null,"size":451,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls/10"},"html":{"href":"https://github.com/abozhiy/TN_Sample_App/pull/10"},"issue":{"href":"https://api.github.com/repos/abozhiy/TN_Sample_App/issues/10"},"comments":{"href":"https://api.github.com/repos/abozhiy/TN_Sample_App/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/abozhiy/TN_Sample_App/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/abozhiy/TN_Sample_App/statuses/8ffe374e5b37543536da2274c4f94cef886672c4"}}}}
{"actor":{"display_login":"vkurennov"}}