{"action":"created","comment":{"url":"https://api.github.com/repos/arbox/mkdev-rails/pulls/comments/24549060","id":24549060,"diff_hunk":"@@ -0,0 +1,52 @@\n+# A Controller to control users :)\n+class UsersController < ApplicationController\n+  skip_before_action :require_login, only: [:index, :new, :create]\n+\n+  # GET users_path\n+  def index\n+    @users = User.all\n+  end\n+\n+  # GET user_path for @user\n+  def show\n+    find_user\n+  end\n+\n+  # GET new_user_path\n+  def new\n+    @user = User.new\n+  end\n+\n+  # POST users_path\n+  def create\n+    @user = User.new(user_params)\n+    if @user.save\n+      auto_login(@user)\n+      redirect_to root_path\n+    else\n+      render 'new'\n+    end\n+  end\n+\n+  # GET edit_user_path for @user\n+  def edit\n+  end\n+","path":"app/controllers/users_controller.rb","position":28,"original_position":34,"commit_id":"5a76bd9d84b507fed822f438f9161c570bf26192","original_commit_id":"90593656fb6e266a462f71de20ac813146b6ac0d","user":{"login":"Fodoj","id":78866,"avatar_url":"https://avatars.githubusercontent.com/u/78866?v=3","gravatar_id":"","url":"https://api.github.com/users/Fodoj","html_url":"https://github.com/Fodoj","followers_url":"https://api.github.com/users/Fodoj/followers","following_url":"https://api.github.com/users/Fodoj/following{/other_user}","gists_url":"https://api.github.com/users/Fodoj/gists{/gist_id}","starred_url":"https://api.github.com/users/Fodoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fodoj/subscriptions","organizations_url":"https://api.github.com/users/Fodoj/orgs","repos_url":"https://api.github.com/users/Fodoj/repos","events_url":"https://api.github.com/users/Fodoj/events{/privacy}","received_events_url":"https://api.github.com/users/Fodoj/received_events","type":"User","site_admin":false},"body":"Для наглядности. Можно и полностью удалить их отсюда конечно ","created_at":"2015-02-12T00:38:50Z","updated_at":"2015-02-12T00:38:50Z","html_url":"https://github.com/arbox/mkdev-rails/pull/8#discussion_r24549060","pull_request_url":"https://api.github.com/repos/arbox/mkdev-rails/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/arbox/mkdev-rails/pulls/comments/24549060"},"html":{"href":"https://github.com/arbox/mkdev-rails/pull/8#discussion_r24549060"},"pull_request":{"href":"https://api.github.com/repos/arbox/mkdev-rails/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/arbox/mkdev-rails/pulls/8","id":28962539,"html_url":"https://github.com/arbox/mkdev-rails/pull/8","diff_url":"https://github.com/arbox/mkdev-rails/pull/8.diff","patch_url":"https://github.com/arbox/mkdev-rails/pull/8.patch","issue_url":"https://api.github.com/repos/arbox/mkdev-rails/issues/8","number":8,"state":"open","locked":false,"title":"Lesson 8","user":{"login":"arbox","id":357237,"avatar_url":"https://avatars.githubusercontent.com/u/357237?v=3","gravatar_id":"","url":"https://api.github.com/users/arbox","html_url":"https://github.com/arbox","followers_url":"https://api.github.com/users/arbox/followers","following_url":"https://api.github.com/users/arbox/following{/other_user}","gists_url":"https://api.github.com/users/arbox/gists{/gist_id}","starred_url":"https://api.github.com/users/arbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbox/subscriptions","organizations_url":"https://api.github.com/users/arbox/orgs","repos_url":"https://api.github.com/users/arbox/repos","events_url":"https://api.github.com/users/arbox/events{/privacy}","received_events_url":"https://api.github.com/users/arbox/received_events","type":"User","site_admin":false},"body":"Completed the lesson VIII.","created_at":"2015-02-09T22:24:43Z","updated_at":"2015-02-12T00:38:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d0bbdba50baadffedd236d734ba84e7e0347076","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/arbox/mkdev-rails/pulls/8/commits","review_comments_url":"https://api.github.com/repos/arbox/mkdev-rails/pulls/8/comments","review_comment_url":"https://api.github.com/repos/arbox/mkdev-rails/pulls/comments/{number}","comments_url":"https://api.github.com/repos/arbox/mkdev-rails/issues/8/comments","statuses_url":"https://api.github.com/repos/arbox/mkdev-rails/statuses/5a76bd9d84b507fed822f438f9161c570bf26192","head":{"label":"arbox:Lesson-8","ref":"Lesson-8","sha":"5a76bd9d84b507fed822f438f9161c570bf26192","user":{"login":"arbox","id":357237,"avatar_url":"https://avatars.githubusercontent.com/u/357237?v=3","gravatar_id":"","url":"https://api.github.com/users/arbox","html_url":"https://github.com/arbox","followers_url":"https://api.github.com/users/arbox/followers","following_url":"https://api.github.com/users/arbox/following{/other_user}","gists_url":"https://api.github.com/users/arbox/gists{/gist_id}","starred_url":"https://api.github.com/users/arbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbox/subscriptions","organizations_url":"https://api.github.com/users/arbox/orgs","repos_url":"https://api.github.com/users/arbox/repos","events_url":"https://api.github.com/users/arbox/events{/privacy}","received_events_url":"https://api.github.com/users/arbox/received_events","type":"User","site_admin":false},"repo":{"id":29431043,"name":"mkdev-rails","full_name":"arbox/mkdev-rails","owner":{"login":"arbox","id":357237,"avatar_url":"https://avatars.githubusercontent.com/u/357237?v=3","gravatar_id":"","url":"https://api.github.com/users/arbox","html_url":"https://github.com/arbox","followers_url":"https://api.github.com/users/arbox/followers","following_url":"https://api.github.com/users/arbox/following{/other_user}","gists_url":"https://api.github.com/users/arbox/gists{/gist_id}","starred_url":"https://api.github.com/users/arbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbox/subscriptions","organizations_url":"https://api.github.com/users/arbox/orgs","repos_url":"https://api.github.com/users/arbox/repos","events_url":"https://api.github.com/users/arbox/events{/privacy}","received_events_url":"https://api.github.com/users/arbox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arbox/mkdev-rails","description":"My attempts on MKDEV","fork":false,"url":"https://api.github.com/repos/arbox/mkdev-rails","forks_url":"https://api.github.com/repos/arbox/mkdev-rails/forks","keys_url":"https://api.github.com/repos/arbox/mkdev-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arbox/mkdev-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arbox/mkdev-rails/teams","hooks_url":"https://api.github.com/repos/arbox/mkdev-rails/hooks","issue_events_url":"https://api.github.com/repos/arbox/mkdev-rails/issues/events{/number}","events_url":"https://api.github.com/repos/arbox/mkdev-rails/events","assignees_url":"https://api.github.com/repos/arbox/mkdev-rails/assignees{/user}","branches_url":"https://api.github.com/repos/arbox/mkdev-rails/branches{/branch}","tags_url":"https://api.github.com/repos/arbox/mkdev-rails/tags","blobs_url":"https://api.github.com/repos/arbox/mkdev-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arbox/mkdev-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arbox/mkdev-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/arbox/mkdev-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arbox/mkdev-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/arbox/mkdev-rails/languages","stargazers_url":"https://api.github.com/repos/arbox/mkdev-rails/stargazers","contributors_url":"https://api.github.com/repos/arbox/mkdev-rails/contributors","subscribers_url":"https://api.github.com/repos/arbox/mkdev-rails/subscribers","subscription_url":"https://api.github.com/repos/arbox/mkdev-rails/subscription","commits_url":"https://api.github.com/repos/arbox/mkdev-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/arbox/mkdev-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/arbox/mkdev-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/arbox/mkdev-rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/arbox/mkdev-rails/contents/{+path}","compare_url":"https://api.github.com/repos/arbox/mkdev-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arbox/mkdev-rails/merges","archive_url":"https://api.github.com/repos/arbox/mkdev-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arbox/mkdev-rails/downloads","issues_url":"https://api.github.com/repos/arbox/mkdev-rails/issues{/number}","pulls_url":"https://api.github.com/repos/arbox/mkdev-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/arbox/mkdev-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/arbox/mkdev-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arbox/mkdev-rails/labels{/name}","releases_url":"https://api.github.com/repos/arbox/mkdev-rails/releases{/id}","created_at":"2015-01-18T15:52:23Z","updated_at":"2015-02-11T17:21:31Z","pushed_at":"2015-02-11T22:28:29Z","git_url":"git://github.com/arbox/mkdev-rails.git","ssh_url":"git@github.com:arbox/mkdev-rails.git","clone_url":"https://github.com/arbox/mkdev-rails.git","svn_url":"https://github.com/arbox/mkdev-rails","homepage":null,"size":1292,"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":"arbox:master","ref":"master","sha":"7b053fad775272b5c208650a2bcb76d4c9bcedb1","user":{"login":"arbox","id":357237,"avatar_url":"https://avatars.githubusercontent.com/u/357237?v=3","gravatar_id":"","url":"https://api.github.com/users/arbox","html_url":"https://github.com/arbox","followers_url":"https://api.github.com/users/arbox/followers","following_url":"https://api.github.com/users/arbox/following{/other_user}","gists_url":"https://api.github.com/users/arbox/gists{/gist_id}","starred_url":"https://api.github.com/users/arbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbox/subscriptions","organizations_url":"https://api.github.com/users/arbox/orgs","repos_url":"https://api.github.com/users/arbox/repos","events_url":"https://api.github.com/users/arbox/events{/privacy}","received_events_url":"https://api.github.com/users/arbox/received_events","type":"User","site_admin":false},"repo":{"id":29431043,"name":"mkdev-rails","full_name":"arbox/mkdev-rails","owner":{"login":"arbox","id":357237,"avatar_url":"https://avatars.githubusercontent.com/u/357237?v=3","gravatar_id":"","url":"https://api.github.com/users/arbox","html_url":"https://github.com/arbox","followers_url":"https://api.github.com/users/arbox/followers","following_url":"https://api.github.com/users/arbox/following{/other_user}","gists_url":"https://api.github.com/users/arbox/gists{/gist_id}","starred_url":"https://api.github.com/users/arbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbox/subscriptions","organizations_url":"https://api.github.com/users/arbox/orgs","repos_url":"https://api.github.com/users/arbox/repos","events_url":"https://api.github.com/users/arbox/events{/privacy}","received_events_url":"https://api.github.com/users/arbox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arbox/mkdev-rails","description":"My attempts on MKDEV","fork":false,"url":"https://api.github.com/repos/arbox/mkdev-rails","forks_url":"https://api.github.com/repos/arbox/mkdev-rails/forks","keys_url":"https://api.github.com/repos/arbox/mkdev-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arbox/mkdev-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arbox/mkdev-rails/teams","hooks_url":"https://api.github.com/repos/arbox/mkdev-rails/hooks","issue_events_url":"https://api.github.com/repos/arbox/mkdev-rails/issues/events{/number}","events_url":"https://api.github.com/repos/arbox/mkdev-rails/events","assignees_url":"https://api.github.com/repos/arbox/mkdev-rails/assignees{/user}","branches_url":"https://api.github.com/repos/arbox/mkdev-rails/branches{/branch}","tags_url":"https://api.github.com/repos/arbox/mkdev-rails/tags","blobs_url":"https://api.github.com/repos/arbox/mkdev-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arbox/mkdev-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arbox/mkdev-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/arbox/mkdev-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arbox/mkdev-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/arbox/mkdev-rails/languages","stargazers_url":"https://api.github.com/repos/arbox/mkdev-rails/stargazers","contributors_url":"https://api.github.com/repos/arbox/mkdev-rails/contributors","subscribers_url":"https://api.github.com/repos/arbox/mkdev-rails/subscribers","subscription_url":"https://api.github.com/repos/arbox/mkdev-rails/subscription","commits_url":"https://api.github.com/repos/arbox/mkdev-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/arbox/mkdev-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/arbox/mkdev-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/arbox/mkdev-rails/issues/comments/{number}","contents_url":"https://api.github.com/repos/arbox/mkdev-rails/contents/{+path}","compare_url":"https://api.github.com/repos/arbox/mkdev-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arbox/mkdev-rails/merges","archive_url":"https://api.github.com/repos/arbox/mkdev-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arbox/mkdev-rails/downloads","issues_url":"https://api.github.com/repos/arbox/mkdev-rails/issues{/number}","pulls_url":"https://api.github.com/repos/arbox/mkdev-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/arbox/mkdev-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/arbox/mkdev-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arbox/mkdev-rails/labels{/name}","releases_url":"https://api.github.com/repos/arbox/mkdev-rails/releases{/id}","created_at":"2015-01-18T15:52:23Z","updated_at":"2015-02-11T17:21:31Z","pushed_at":"2015-02-11T22:28:29Z","git_url":"git://github.com/arbox/mkdev-rails.git","ssh_url":"git@github.com:arbox/mkdev-rails.git","clone_url":"https://github.com/arbox/mkdev-rails.git","svn_url":"https://github.com/arbox/mkdev-rails","homepage":null,"size":1292,"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/arbox/mkdev-rails/pulls/8"},"html":{"href":"https://github.com/arbox/mkdev-rails/pull/8"},"issue":{"href":"https://api.github.com/repos/arbox/mkdev-rails/issues/8"},"comments":{"href":"https://api.github.com/repos/arbox/mkdev-rails/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/arbox/mkdev-rails/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/arbox/mkdev-rails/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/arbox/mkdev-rails/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/arbox/mkdev-rails/statuses/5a76bd9d84b507fed822f438f9161c570bf26192"}}}}