{"action":"created","comment":{"url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/comments/23357532","id":23357532,"diff_hunk":"@@ -5,8 +5,31 @@ class UsersController < ApplicationController\n   #   @users = User.all\n   # end\n \n+  def new\n+    @user = User.new\n+  end\n+\n+  def create\n+    @user = User.create(user_params)\n+    flash[:success] = \"You have successfully registered.\"\n+    redirect_to \"/\"\n+    #make sure user is logged in when created\n+    #flash success message when user is created\n+    #else render new possible error flash message\n+","path":"app/controllers/users_controller.rb","position":15,"original_position":15,"commit_id":"92c81728f40b667e08ebd93a9e627e0bdd668776","original_commit_id":"92c81728f40b667e08ebd93a9e627e0bdd668776","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":"Extra empty line detected at body end.","created_at":"2015-01-22T06:30:35Z","updated_at":"2015-01-22T06:30:35Z","html_url":"https://github.com/bhargavisatpathy/dinner_dash/pull/74#discussion_r23357532","pull_request_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/comments/23357532"},"html":{"href":"https://github.com/bhargavisatpathy/dinner_dash/pull/74#discussion_r23357532"},"pull_request":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/74","id":27820747,"html_url":"https://github.com/bhargavisatpathy/dinner_dash/pull/74","diff_url":"https://github.com/bhargavisatpathy/dinner_dash/pull/74.diff","patch_url":"https://github.com/bhargavisatpathy/dinner_dash/pull/74.patch","issue_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/74","number":74,"state":"open","locked":false,"title":"[WIP] Do Not Merge Yet Register","user":{"login":"bmrsny","id":8440504,"avatar_url":"https://avatars.githubusercontent.com/u/8440504?v=3","gravatar_id":"","url":"https://api.github.com/users/bmrsny","html_url":"https://github.com/bmrsny","followers_url":"https://api.github.com/users/bmrsny/followers","following_url":"https://api.github.com/users/bmrsny/following{/other_user}","gists_url":"https://api.github.com/users/bmrsny/gists{/gist_id}","starred_url":"https://api.github.com/users/bmrsny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmrsny/subscriptions","organizations_url":"https://api.github.com/users/bmrsny/orgs","repos_url":"https://api.github.com/users/bmrsny/repos","events_url":"https://api.github.com/users/bmrsny/events{/privacy}","received_events_url":"https://api.github.com/users/bmrsny/received_events","type":"User","site_admin":false},"body":"Still failing test until we can figure out how to handle default user roles. Tested it without the role in user validation and it all worked.(made sure I put the role back in the user model) Probably Hound issues as well. ","created_at":"2015-01-22T06:24:24Z","updated_at":"2015-01-22T06:30:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d19e819f3d40faef29d896e2923d56af7efd61d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/74/commits","review_comments_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/74/comments","review_comment_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/74/comments","statuses_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/statuses/92c81728f40b667e08ebd93a9e627e0bdd668776","head":{"label":"bhargavisatpathy:register","ref":"register","sha":"92c81728f40b667e08ebd93a9e627e0bdd668776","user":{"login":"bhargavisatpathy","id":8531351,"avatar_url":"https://avatars.githubusercontent.com/u/8531351?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavisatpathy","html_url":"https://github.com/bhargavisatpathy","followers_url":"https://api.github.com/users/bhargavisatpathy/followers","following_url":"https://api.github.com/users/bhargavisatpathy/following{/other_user}","gists_url":"https://api.github.com/users/bhargavisatpathy/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavisatpathy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavisatpathy/subscriptions","organizations_url":"https://api.github.com/users/bhargavisatpathy/orgs","repos_url":"https://api.github.com/users/bhargavisatpathy/repos","events_url":"https://api.github.com/users/bhargavisatpathy/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavisatpathy/received_events","type":"User","site_admin":false},"repo":{"id":29540093,"name":"dinner_dash","full_name":"bhargavisatpathy/dinner_dash","owner":{"login":"bhargavisatpathy","id":8531351,"avatar_url":"https://avatars.githubusercontent.com/u/8531351?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavisatpathy","html_url":"https://github.com/bhargavisatpathy","followers_url":"https://api.github.com/users/bhargavisatpathy/followers","following_url":"https://api.github.com/users/bhargavisatpathy/following{/other_user}","gists_url":"https://api.github.com/users/bhargavisatpathy/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavisatpathy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavisatpathy/subscriptions","organizations_url":"https://api.github.com/users/bhargavisatpathy/orgs","repos_url":"https://api.github.com/users/bhargavisatpathy/repos","events_url":"https://api.github.com/users/bhargavisatpathy/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavisatpathy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhargavisatpathy/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash","forks_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/forks","keys_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/teams","hooks_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/events","assignees_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/tags","blobs_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/subscription","commits_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/comments/{number}","contents_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/merges","archive_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/downloads","issues_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/releases{/id}","created_at":"2015-01-20T16:44:14Z","updated_at":"2015-01-21T23:54:54Z","pushed_at":"2015-01-22T06:30:31Z","git_url":"git://github.com/bhargavisatpathy/dinner_dash.git","ssh_url":"git@github.com:bhargavisatpathy/dinner_dash.git","clone_url":"https://github.com/bhargavisatpathy/dinner_dash.git","svn_url":"https://github.com/bhargavisatpathy/dinner_dash","homepage":null,"size":636,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":42,"forks":3,"open_issues":42,"watchers":0,"default_branch":"master"}},"base":{"label":"bhargavisatpathy:master","ref":"master","sha":"631814ce8efd35ce68a2998a5cea3abcc285c068","user":{"login":"bhargavisatpathy","id":8531351,"avatar_url":"https://avatars.githubusercontent.com/u/8531351?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavisatpathy","html_url":"https://github.com/bhargavisatpathy","followers_url":"https://api.github.com/users/bhargavisatpathy/followers","following_url":"https://api.github.com/users/bhargavisatpathy/following{/other_user}","gists_url":"https://api.github.com/users/bhargavisatpathy/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavisatpathy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavisatpathy/subscriptions","organizations_url":"https://api.github.com/users/bhargavisatpathy/orgs","repos_url":"https://api.github.com/users/bhargavisatpathy/repos","events_url":"https://api.github.com/users/bhargavisatpathy/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavisatpathy/received_events","type":"User","site_admin":false},"repo":{"id":29540093,"name":"dinner_dash","full_name":"bhargavisatpathy/dinner_dash","owner":{"login":"bhargavisatpathy","id":8531351,"avatar_url":"https://avatars.githubusercontent.com/u/8531351?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavisatpathy","html_url":"https://github.com/bhargavisatpathy","followers_url":"https://api.github.com/users/bhargavisatpathy/followers","following_url":"https://api.github.com/users/bhargavisatpathy/following{/other_user}","gists_url":"https://api.github.com/users/bhargavisatpathy/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavisatpathy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavisatpathy/subscriptions","organizations_url":"https://api.github.com/users/bhargavisatpathy/orgs","repos_url":"https://api.github.com/users/bhargavisatpathy/repos","events_url":"https://api.github.com/users/bhargavisatpathy/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavisatpathy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhargavisatpathy/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash","forks_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/forks","keys_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/teams","hooks_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/events","assignees_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/tags","blobs_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/subscription","commits_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/comments/{number}","contents_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/merges","archive_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/downloads","issues_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/releases{/id}","created_at":"2015-01-20T16:44:14Z","updated_at":"2015-01-21T23:54:54Z","pushed_at":"2015-01-22T06:30:31Z","git_url":"git://github.com/bhargavisatpathy/dinner_dash.git","ssh_url":"git@github.com:bhargavisatpathy/dinner_dash.git","clone_url":"https://github.com/bhargavisatpathy/dinner_dash.git","svn_url":"https://github.com/bhargavisatpathy/dinner_dash","homepage":null,"size":636,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":42,"forks":3,"open_issues":42,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/74"},"html":{"href":"https://github.com/bhargavisatpathy/dinner_dash/pull/74"},"issue":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/74"},"comments":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/bhargavisatpathy/dinner_dash/statuses/92c81728f40b667e08ebd93a9e627e0bdd668776"}}}}