{"action":"created","comment":{"url":"https://api.github.com/repos/maximsolopin/rails/pulls/comments/43612679","id":43612679,"diff_hunk":"@@ -0,0 +1,57 @@\n+class Admin::TicketsController < Admin::BaseController\n+    before_action :set_ticket, only: [:show, :edit, :update, :destroy]\n+    before_action :railway_station_all\n+\n+    def index\n+        @tickets = Ticket.all\n+    end\n+\n+    def show\n+\n+    end\n+\n+    def new\n+        @ticket = Ticket.new\n+    end\n+\n+    def create\n+        @ticket = current_user.tickets.new(ticket_params)","path":"railwaystation/app/controllers/admin/tickets_controller.rb","position":18,"original_position":18,"commit_id":"87cd52e754e977905b97070c17c85e5350a7761f","original_commit_id":"87cd52e754e977905b97070c17c85e5350a7761f","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":"Я тебе на ИЗ сказал, что в админке пользователь не от себя создет билет, а по идее, может выбрать. Но вообще, в задании сказано, что админ может только редактировать билеты и смотреть список, а про создание ничего не сказано.","created_at":"2015-11-02T10:07:51Z","updated_at":"2015-11-02T10:07:51Z","html_url":"https://github.com/maximsolopin/rails/pull/8#discussion_r43612679","pull_request_url":"https://api.github.com/repos/maximsolopin/rails/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/maximsolopin/rails/pulls/comments/43612679"},"html":{"href":"https://github.com/maximsolopin/rails/pull/8#discussion_r43612679"},"pull_request":{"href":"https://api.github.com/repos/maximsolopin/rails/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/maximsolopin/rails/pulls/8","id":49347426,"html_url":"https://github.com/maximsolopin/rails/pull/8","diff_url":"https://github.com/maximsolopin/rails/pull/8.diff","patch_url":"https://github.com/maximsolopin/rails/pull/8.patch","issue_url":"https://api.github.com/repos/maximsolopin/rails/issues/8","number":8,"state":"open","locked":false,"title":"end 17 lesson","user":{"login":"maximsolopin","id":1611695,"avatar_url":"https://avatars.githubusercontent.com/u/1611695?v=3","gravatar_id":"","url":"https://api.github.com/users/maximsolopin","html_url":"https://github.com/maximsolopin","followers_url":"https://api.github.com/users/maximsolopin/followers","following_url":"https://api.github.com/users/maximsolopin/following{/other_user}","gists_url":"https://api.github.com/users/maximsolopin/gists{/gist_id}","starred_url":"https://api.github.com/users/maximsolopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximsolopin/subscriptions","organizations_url":"https://api.github.com/users/maximsolopin/orgs","repos_url":"https://api.github.com/users/maximsolopin/repos","events_url":"https://api.github.com/users/maximsolopin/events{/privacy}","received_events_url":"https://api.github.com/users/maximsolopin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-31T11:22:22Z","updated_at":"2015-11-02T10:07:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecc5c9eb925e85db515633b7b559741cb3e54861","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/maximsolopin/rails/pulls/8/commits","review_comments_url":"https://api.github.com/repos/maximsolopin/rails/pulls/8/comments","review_comment_url":"https://api.github.com/repos/maximsolopin/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maximsolopin/rails/issues/8/comments","statuses_url":"https://api.github.com/repos/maximsolopin/rails/statuses/87cd52e754e977905b97070c17c85e5350a7761f","head":{"label":"maximsolopin:lesson_17","ref":"lesson_17","sha":"87cd52e754e977905b97070c17c85e5350a7761f","user":{"login":"maximsolopin","id":1611695,"avatar_url":"https://avatars.githubusercontent.com/u/1611695?v=3","gravatar_id":"","url":"https://api.github.com/users/maximsolopin","html_url":"https://github.com/maximsolopin","followers_url":"https://api.github.com/users/maximsolopin/followers","following_url":"https://api.github.com/users/maximsolopin/following{/other_user}","gists_url":"https://api.github.com/users/maximsolopin/gists{/gist_id}","starred_url":"https://api.github.com/users/maximsolopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximsolopin/subscriptions","organizations_url":"https://api.github.com/users/maximsolopin/orgs","repos_url":"https://api.github.com/users/maximsolopin/repos","events_url":"https://api.github.com/users/maximsolopin/events{/privacy}","received_events_url":"https://api.github.com/users/maximsolopin/received_events","type":"User","site_admin":false},"repo":{"id":43016255,"name":"rails","full_name":"maximsolopin/rails","owner":{"login":"maximsolopin","id":1611695,"avatar_url":"https://avatars.githubusercontent.com/u/1611695?v=3","gravatar_id":"","url":"https://api.github.com/users/maximsolopin","html_url":"https://github.com/maximsolopin","followers_url":"https://api.github.com/users/maximsolopin/followers","following_url":"https://api.github.com/users/maximsolopin/following{/other_user}","gists_url":"https://api.github.com/users/maximsolopin/gists{/gist_id}","starred_url":"https://api.github.com/users/maximsolopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximsolopin/subscriptions","organizations_url":"https://api.github.com/users/maximsolopin/orgs","repos_url":"https://api.github.com/users/maximsolopin/repos","events_url":"https://api.github.com/users/maximsolopin/events{/privacy}","received_events_url":"https://api.github.com/users/maximsolopin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maximsolopin/rails","description":"","fork":false,"url":"https://api.github.com/repos/maximsolopin/rails","forks_url":"https://api.github.com/repos/maximsolopin/rails/forks","keys_url":"https://api.github.com/repos/maximsolopin/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maximsolopin/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maximsolopin/rails/teams","hooks_url":"https://api.github.com/repos/maximsolopin/rails/hooks","issue_events_url":"https://api.github.com/repos/maximsolopin/rails/issues/events{/number}","events_url":"https://api.github.com/repos/maximsolopin/rails/events","assignees_url":"https://api.github.com/repos/maximsolopin/rails/assignees{/user}","branches_url":"https://api.github.com/repos/maximsolopin/rails/branches{/branch}","tags_url":"https://api.github.com/repos/maximsolopin/rails/tags","blobs_url":"https://api.github.com/repos/maximsolopin/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maximsolopin/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maximsolopin/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/maximsolopin/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maximsolopin/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/maximsolopin/rails/languages","stargazers_url":"https://api.github.com/repos/maximsolopin/rails/stargazers","contributors_url":"https://api.github.com/repos/maximsolopin/rails/contributors","subscribers_url":"https://api.github.com/repos/maximsolopin/rails/subscribers","subscription_url":"https://api.github.com/repos/maximsolopin/rails/subscription","commits_url":"https://api.github.com/repos/maximsolopin/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/maximsolopin/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/maximsolopin/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/maximsolopin/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/maximsolopin/rails/contents/{+path}","compare_url":"https://api.github.com/repos/maximsolopin/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maximsolopin/rails/merges","archive_url":"https://api.github.com/repos/maximsolopin/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maximsolopin/rails/downloads","issues_url":"https://api.github.com/repos/maximsolopin/rails/issues{/number}","pulls_url":"https://api.github.com/repos/maximsolopin/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/maximsolopin/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/maximsolopin/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maximsolopin/rails/labels{/name}","releases_url":"https://api.github.com/repos/maximsolopin/rails/releases{/id}","created_at":"2015-09-23T17:29:52Z","updated_at":"2015-10-14T11:40:40Z","pushed_at":"2015-11-01T12:09:44Z","git_url":"git://github.com/maximsolopin/rails.git","ssh_url":"git@github.com:maximsolopin/rails.git","clone_url":"https://github.com/maximsolopin/rails.git","svn_url":"https://github.com/maximsolopin/rails","homepage":null,"size":348,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"maximsolopin:master","ref":"master","sha":"d5fd0861f39646d0022cc099163e9b44d98edf1b","user":{"login":"maximsolopin","id":1611695,"avatar_url":"https://avatars.githubusercontent.com/u/1611695?v=3","gravatar_id":"","url":"https://api.github.com/users/maximsolopin","html_url":"https://github.com/maximsolopin","followers_url":"https://api.github.com/users/maximsolopin/followers","following_url":"https://api.github.com/users/maximsolopin/following{/other_user}","gists_url":"https://api.github.com/users/maximsolopin/gists{/gist_id}","starred_url":"https://api.github.com/users/maximsolopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximsolopin/subscriptions","organizations_url":"https://api.github.com/users/maximsolopin/orgs","repos_url":"https://api.github.com/users/maximsolopin/repos","events_url":"https://api.github.com/users/maximsolopin/events{/privacy}","received_events_url":"https://api.github.com/users/maximsolopin/received_events","type":"User","site_admin":false},"repo":{"id":43016255,"name":"rails","full_name":"maximsolopin/rails","owner":{"login":"maximsolopin","id":1611695,"avatar_url":"https://avatars.githubusercontent.com/u/1611695?v=3","gravatar_id":"","url":"https://api.github.com/users/maximsolopin","html_url":"https://github.com/maximsolopin","followers_url":"https://api.github.com/users/maximsolopin/followers","following_url":"https://api.github.com/users/maximsolopin/following{/other_user}","gists_url":"https://api.github.com/users/maximsolopin/gists{/gist_id}","starred_url":"https://api.github.com/users/maximsolopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximsolopin/subscriptions","organizations_url":"https://api.github.com/users/maximsolopin/orgs","repos_url":"https://api.github.com/users/maximsolopin/repos","events_url":"https://api.github.com/users/maximsolopin/events{/privacy}","received_events_url":"https://api.github.com/users/maximsolopin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maximsolopin/rails","description":"","fork":false,"url":"https://api.github.com/repos/maximsolopin/rails","forks_url":"https://api.github.com/repos/maximsolopin/rails/forks","keys_url":"https://api.github.com/repos/maximsolopin/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maximsolopin/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maximsolopin/rails/teams","hooks_url":"https://api.github.com/repos/maximsolopin/rails/hooks","issue_events_url":"https://api.github.com/repos/maximsolopin/rails/issues/events{/number}","events_url":"https://api.github.com/repos/maximsolopin/rails/events","assignees_url":"https://api.github.com/repos/maximsolopin/rails/assignees{/user}","branches_url":"https://api.github.com/repos/maximsolopin/rails/branches{/branch}","tags_url":"https://api.github.com/repos/maximsolopin/rails/tags","blobs_url":"https://api.github.com/repos/maximsolopin/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maximsolopin/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maximsolopin/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/maximsolopin/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maximsolopin/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/maximsolopin/rails/languages","stargazers_url":"https://api.github.com/repos/maximsolopin/rails/stargazers","contributors_url":"https://api.github.com/repos/maximsolopin/rails/contributors","subscribers_url":"https://api.github.com/repos/maximsolopin/rails/subscribers","subscription_url":"https://api.github.com/repos/maximsolopin/rails/subscription","commits_url":"https://api.github.com/repos/maximsolopin/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/maximsolopin/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/maximsolopin/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/maximsolopin/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/maximsolopin/rails/contents/{+path}","compare_url":"https://api.github.com/repos/maximsolopin/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maximsolopin/rails/merges","archive_url":"https://api.github.com/repos/maximsolopin/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maximsolopin/rails/downloads","issues_url":"https://api.github.com/repos/maximsolopin/rails/issues{/number}","pulls_url":"https://api.github.com/repos/maximsolopin/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/maximsolopin/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/maximsolopin/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maximsolopin/rails/labels{/name}","releases_url":"https://api.github.com/repos/maximsolopin/rails/releases{/id}","created_at":"2015-09-23T17:29:52Z","updated_at":"2015-10-14T11:40:40Z","pushed_at":"2015-11-01T12:09:44Z","git_url":"git://github.com/maximsolopin/rails.git","ssh_url":"git@github.com:maximsolopin/rails.git","clone_url":"https://github.com/maximsolopin/rails.git","svn_url":"https://github.com/maximsolopin/rails","homepage":null,"size":348,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maximsolopin/rails/pulls/8"},"html":{"href":"https://github.com/maximsolopin/rails/pull/8"},"issue":{"href":"https://api.github.com/repos/maximsolopin/rails/issues/8"},"comments":{"href":"https://api.github.com/repos/maximsolopin/rails/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/maximsolopin/rails/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/maximsolopin/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maximsolopin/rails/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/maximsolopin/rails/statuses/87cd52e754e977905b97070c17c85e5350a7761f"}}}}