{"action":"created","comment":{"url":"https://api.github.com/repos/andela-bebowe/toy_app/pulls/comments/39621564","id":39621564,"diff_hunk":"@@ -0,0 +1,74 @@\n+class UsersController < ApplicationController\n+  before_action :set_user, only: [:show, :edit, :update, :destroy]\n+\n+  # GET /users\n+  # GET /users.json\n+  def index\n+    @users = User.all\n+  end\n+\n+  # GET /users/1\n+  # GET /users/1.json\n+  def show\n+  end\n+\n+  # GET /users/new\n+  def new\n+    @user = User.new\n+  end\n+\n+  # GET /users/1/edit\n+  def edit\n+  end\n+\n+  # POST /users\n+  # POST /users.json\n+  def create\n+    @user = User.new(user_params)\n+\n+    respond_to do |format|\n+      if @user.save\n+        format.html { redirect_to @user, notice: 'User was successfully created.' }\n+        format.json { render :show, status: :created, location: @user }\n+      else\n+        format.html { render :new }\n+        format.json { render json: @user.errors, status: :unprocessable_entity }\n+      end\n+    end\n+  end\n+\n+  # PATCH/PUT /users/1\n+  # PATCH/PUT /users/1.json\n+  def update\n+    respond_to do |format|\n+      if @user.update(user_params)\n+        format.html { redirect_to @user, notice: 'User was successfully updated.' }\n+        format.json { render :show, status: :ok, location: @user }\n+      else\n+        format.html { render :edit }\n+        format.json { render json: @user.errors, status: :unprocessable_entity }\n+      end\n+    end\n+  end\n+\n+  # DELETE /users/1\n+  # DELETE /users/1.json\n+  def destroy\n+    @user.destroy\n+    respond_to do |format|\n+      format.html { redirect_to users_url, notice: 'User was successfully destroyed.' }","path":"app/controllers/users_controller.rb","position":59,"original_position":59,"commit_id":"6504a393900cfa41ad3a9895ec8e7d663884160b","original_commit_id":"6504a393900cfa41ad3a9895ec8e7d663884160b","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":"Line is too long. [87/80]<br>Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-09-16T12:13:31Z","updated_at":"2015-09-16T12:13:31Z","html_url":"https://github.com/andela-bebowe/toy_app/pull/1#discussion_r39621564","pull_request_url":"https://api.github.com/repos/andela-bebowe/toy_app/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/andela-bebowe/toy_app/pulls/comments/39621564"},"html":{"href":"https://github.com/andela-bebowe/toy_app/pull/1#discussion_r39621564"},"pull_request":{"href":"https://api.github.com/repos/andela-bebowe/toy_app/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/andela-bebowe/toy_app/pulls/1","id":45068200,"html_url":"https://github.com/andela-bebowe/toy_app/pull/1","diff_url":"https://github.com/andela-bebowe/toy_app/pull/1.diff","patch_url":"https://github.com/andela-bebowe/toy_app/pull/1.patch","issue_url":"https://api.github.com/repos/andela-bebowe/toy_app/issues/1","number":1,"state":"open","locked":false,"title":"Temp","user":{"login":"andela-bebowe","id":10234875,"avatar_url":"https://avatars.githubusercontent.com/u/10234875?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bebowe","html_url":"https://github.com/andela-bebowe","followers_url":"https://api.github.com/users/andela-bebowe/followers","following_url":"https://api.github.com/users/andela-bebowe/following{/other_user}","gists_url":"https://api.github.com/users/andela-bebowe/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bebowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bebowe/subscriptions","organizations_url":"https://api.github.com/users/andela-bebowe/orgs","repos_url":"https://api.github.com/users/andela-bebowe/repos","events_url":"https://api.github.com/users/andela-bebowe/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bebowe/received_events","type":"User","site_admin":false},"body":"Am through with working on this project, you can review the code.","created_at":"2015-09-15T16:00:56Z","updated_at":"2015-09-16T12:13:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07daf43794dc43cd711938ecb3b5994af4462c63","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela-bebowe/toy_app/pulls/1/commits","review_comments_url":"https://api.github.com/repos/andela-bebowe/toy_app/pulls/1/comments","review_comment_url":"https://api.github.com/repos/andela-bebowe/toy_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-bebowe/toy_app/issues/1/comments","statuses_url":"https://api.github.com/repos/andela-bebowe/toy_app/statuses/6504a393900cfa41ad3a9895ec8e7d663884160b","head":{"label":"andela-bebowe:temp","ref":"temp","sha":"6504a393900cfa41ad3a9895ec8e7d663884160b","user":{"login":"andela-bebowe","id":10234875,"avatar_url":"https://avatars.githubusercontent.com/u/10234875?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bebowe","html_url":"https://github.com/andela-bebowe","followers_url":"https://api.github.com/users/andela-bebowe/followers","following_url":"https://api.github.com/users/andela-bebowe/following{/other_user}","gists_url":"https://api.github.com/users/andela-bebowe/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bebowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bebowe/subscriptions","organizations_url":"https://api.github.com/users/andela-bebowe/orgs","repos_url":"https://api.github.com/users/andela-bebowe/repos","events_url":"https://api.github.com/users/andela-bebowe/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bebowe/received_events","type":"User","site_admin":false},"repo":{"id":42500819,"name":"toy_app","full_name":"andela-bebowe/toy_app","owner":{"login":"andela-bebowe","id":10234875,"avatar_url":"https://avatars.githubusercontent.com/u/10234875?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bebowe","html_url":"https://github.com/andela-bebowe","followers_url":"https://api.github.com/users/andela-bebowe/followers","following_url":"https://api.github.com/users/andela-bebowe/following{/other_user}","gists_url":"https://api.github.com/users/andela-bebowe/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bebowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bebowe/subscriptions","organizations_url":"https://api.github.com/users/andela-bebowe/orgs","repos_url":"https://api.github.com/users/andela-bebowe/repos","events_url":"https://api.github.com/users/andela-bebowe/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bebowe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-bebowe/toy_app","description":"","fork":false,"url":"https://api.github.com/repos/andela-bebowe/toy_app","forks_url":"https://api.github.com/repos/andela-bebowe/toy_app/forks","keys_url":"https://api.github.com/repos/andela-bebowe/toy_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-bebowe/toy_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-bebowe/toy_app/teams","hooks_url":"https://api.github.com/repos/andela-bebowe/toy_app/hooks","issue_events_url":"https://api.github.com/repos/andela-bebowe/toy_app/issues/events{/number}","events_url":"https://api.github.com/repos/andela-bebowe/toy_app/events","assignees_url":"https://api.github.com/repos/andela-bebowe/toy_app/assignees{/user}","branches_url":"https://api.github.com/repos/andela-bebowe/toy_app/branches{/branch}","tags_url":"https://api.github.com/repos/andela-bebowe/toy_app/tags","blobs_url":"https://api.github.com/repos/andela-bebowe/toy_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-bebowe/toy_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-bebowe/toy_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-bebowe/toy_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-bebowe/toy_app/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-bebowe/toy_app/languages","stargazers_url":"https://api.github.com/repos/andela-bebowe/toy_app/stargazers","contributors_url":"https://api.github.com/repos/andela-bebowe/toy_app/contributors","subscribers_url":"https://api.github.com/repos/andela-bebowe/toy_app/subscribers","subscription_url":"https://api.github.com/repos/andela-bebowe/toy_app/subscription","commits_url":"https://api.github.com/repos/andela-bebowe/toy_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-bebowe/toy_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-bebowe/toy_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-bebowe/toy_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-bebowe/toy_app/contents/{+path}","compare_url":"https://api.github.com/repos/andela-bebowe/toy_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-bebowe/toy_app/merges","archive_url":"https://api.github.com/repos/andela-bebowe/toy_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-bebowe/toy_app/downloads","issues_url":"https://api.github.com/repos/andela-bebowe/toy_app/issues{/number}","pulls_url":"https://api.github.com/repos/andela-bebowe/toy_app/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-bebowe/toy_app/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-bebowe/toy_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-bebowe/toy_app/labels{/name}","releases_url":"https://api.github.com/repos/andela-bebowe/toy_app/releases{/id}","created_at":"2015-09-15T06:56:48Z","updated_at":"2015-09-15T06:56:48Z","pushed_at":"2015-09-16T12:13:20Z","git_url":"git://github.com/andela-bebowe/toy_app.git","ssh_url":"git@github.com:andela-bebowe/toy_app.git","clone_url":"https://github.com/andela-bebowe/toy_app.git","svn_url":"https://github.com/andela-bebowe/toy_app","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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":"andela-bebowe:master","ref":"master","sha":"0f10670b8049744f0d9c4da2d0e682b5371eac52","user":{"login":"andela-bebowe","id":10234875,"avatar_url":"https://avatars.githubusercontent.com/u/10234875?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bebowe","html_url":"https://github.com/andela-bebowe","followers_url":"https://api.github.com/users/andela-bebowe/followers","following_url":"https://api.github.com/users/andela-bebowe/following{/other_user}","gists_url":"https://api.github.com/users/andela-bebowe/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bebowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bebowe/subscriptions","organizations_url":"https://api.github.com/users/andela-bebowe/orgs","repos_url":"https://api.github.com/users/andela-bebowe/repos","events_url":"https://api.github.com/users/andela-bebowe/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bebowe/received_events","type":"User","site_admin":false},"repo":{"id":42500819,"name":"toy_app","full_name":"andela-bebowe/toy_app","owner":{"login":"andela-bebowe","id":10234875,"avatar_url":"https://avatars.githubusercontent.com/u/10234875?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-bebowe","html_url":"https://github.com/andela-bebowe","followers_url":"https://api.github.com/users/andela-bebowe/followers","following_url":"https://api.github.com/users/andela-bebowe/following{/other_user}","gists_url":"https://api.github.com/users/andela-bebowe/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-bebowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-bebowe/subscriptions","organizations_url":"https://api.github.com/users/andela-bebowe/orgs","repos_url":"https://api.github.com/users/andela-bebowe/repos","events_url":"https://api.github.com/users/andela-bebowe/events{/privacy}","received_events_url":"https://api.github.com/users/andela-bebowe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-bebowe/toy_app","description":"","fork":false,"url":"https://api.github.com/repos/andela-bebowe/toy_app","forks_url":"https://api.github.com/repos/andela-bebowe/toy_app/forks","keys_url":"https://api.github.com/repos/andela-bebowe/toy_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-bebowe/toy_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-bebowe/toy_app/teams","hooks_url":"https://api.github.com/repos/andela-bebowe/toy_app/hooks","issue_events_url":"https://api.github.com/repos/andela-bebowe/toy_app/issues/events{/number}","events_url":"https://api.github.com/repos/andela-bebowe/toy_app/events","assignees_url":"https://api.github.com/repos/andela-bebowe/toy_app/assignees{/user}","branches_url":"https://api.github.com/repos/andela-bebowe/toy_app/branches{/branch}","tags_url":"https://api.github.com/repos/andela-bebowe/toy_app/tags","blobs_url":"https://api.github.com/repos/andela-bebowe/toy_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-bebowe/toy_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-bebowe/toy_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-bebowe/toy_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-bebowe/toy_app/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-bebowe/toy_app/languages","stargazers_url":"https://api.github.com/repos/andela-bebowe/toy_app/stargazers","contributors_url":"https://api.github.com/repos/andela-bebowe/toy_app/contributors","subscribers_url":"https://api.github.com/repos/andela-bebowe/toy_app/subscribers","subscription_url":"https://api.github.com/repos/andela-bebowe/toy_app/subscription","commits_url":"https://api.github.com/repos/andela-bebowe/toy_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-bebowe/toy_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-bebowe/toy_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-bebowe/toy_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-bebowe/toy_app/contents/{+path}","compare_url":"https://api.github.com/repos/andela-bebowe/toy_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-bebowe/toy_app/merges","archive_url":"https://api.github.com/repos/andela-bebowe/toy_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-bebowe/toy_app/downloads","issues_url":"https://api.github.com/repos/andela-bebowe/toy_app/issues{/number}","pulls_url":"https://api.github.com/repos/andela-bebowe/toy_app/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-bebowe/toy_app/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-bebowe/toy_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-bebowe/toy_app/labels{/name}","releases_url":"https://api.github.com/repos/andela-bebowe/toy_app/releases{/id}","created_at":"2015-09-15T06:56:48Z","updated_at":"2015-09-15T06:56:48Z","pushed_at":"2015-09-16T12:13:20Z","git_url":"git://github.com/andela-bebowe/toy_app.git","ssh_url":"git@github.com:andela-bebowe/toy_app.git","clone_url":"https://github.com/andela-bebowe/toy_app.git","svn_url":"https://github.com/andela-bebowe/toy_app","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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/andela-bebowe/toy_app/pulls/1"},"html":{"href":"https://github.com/andela-bebowe/toy_app/pull/1"},"issue":{"href":"https://api.github.com/repos/andela-bebowe/toy_app/issues/1"},"comments":{"href":"https://api.github.com/repos/andela-bebowe/toy_app/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-bebowe/toy_app/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-bebowe/toy_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-bebowe/toy_app/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/andela-bebowe/toy_app/statuses/6504a393900cfa41ad3a9895ec8e7d663884160b"}}}}