{"action":"created","comment":{"url":"https://api.github.com/repos/Sassoft/tutu/pulls/comments/53841544","id":53841544,"diff_hunk":"@@ -1,18 +1,47 @@\n Rails.application.routes.draw do\n-  root 'index#index'\n+  devise_for :users\n \n-  resources :trains\n-  resources :routes\n-  resources :railway_stations\n+  resource :search, only: [:new, :show, :edit]\n   resources :tickets\n-  resources :users\n-  resources :wagons\n-  resources :coupe_wagons, :controller => 'wagons'\n-  resources :seat_wagons, :controller => 'wagons'\n-  resources :economy_wagons, :controller => 'wagons'\n-  resources :sv_wagons, :controller => 'wagons'\n-  resources :route_railway_stations\n \n+\n+  namespace :admin do\n+    resources :tickets\n+\n+    resources :trains do\n+      resources :wagons, shallow: true\n+    end\n+\n+    resources :routes\n+\n+    resources :railway_stations do\n+      patch :update_sort, on: :member\n+    end\n+\n+    resources :trains do\n+      resources :wagons, shallow: true\n+    end\n+\n+    resources :users do\n+      resources :tickets, shallow: true\n+    end\n+\n+    resources :routes\n+\n+    resources :railway_stations do","path":"config/routes.rb","position":42,"original_position":42,"commit_id":"28221eecd53a6ed7aa60a4266289f4432b01668d","original_commit_id":"28221eecd53a6ed7aa60a4266289f4432b01668d","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":"И это уже есть в 17-й строке","created_at":"2016-02-23T20:07:41Z","updated_at":"2016-02-23T20:07:41Z","html_url":"https://github.com/Sassoft/tutu/pull/5#discussion_r53841544","pull_request_url":"https://api.github.com/repos/Sassoft/tutu/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/Sassoft/tutu/pulls/comments/53841544"},"html":{"href":"https://github.com/Sassoft/tutu/pull/5#discussion_r53841544"},"pull_request":{"href":"https://api.github.com/repos/Sassoft/tutu/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/Sassoft/tutu/pulls/5","id":60336913,"html_url":"https://github.com/Sassoft/tutu/pull/5","diff_url":"https://github.com/Sassoft/tutu/pull/5.diff","patch_url":"https://github.com/Sassoft/tutu/pull/5.patch","issue_url":"https://api.github.com/repos/Sassoft/tutu/issues/5","number":5,"state":"open","locked":false,"title":"Added authentication","user":{"login":"Sassoft","id":12209346,"avatar_url":"https://avatars.githubusercontent.com/u/12209346?v=3","gravatar_id":"","url":"https://api.github.com/users/Sassoft","html_url":"https://github.com/Sassoft","followers_url":"https://api.github.com/users/Sassoft/followers","following_url":"https://api.github.com/users/Sassoft/following{/other_user}","gists_url":"https://api.github.com/users/Sassoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Sassoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sassoft/subscriptions","organizations_url":"https://api.github.com/users/Sassoft/orgs","repos_url":"https://api.github.com/users/Sassoft/repos","events_url":"https://api.github.com/users/Sassoft/events{/privacy}","received_events_url":"https://api.github.com/users/Sassoft/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-23T13:08:49Z","updated_at":"2016-02-23T20:07:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"798e0d51377fc16b30a9e03588206194f368fbaf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sassoft/tutu/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Sassoft/tutu/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Sassoft/tutu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sassoft/tutu/issues/5/comments","statuses_url":"https://api.github.com/repos/Sassoft/tutu/statuses/28221eecd53a6ed7aa60a4266289f4432b01668d","head":{"label":"Sassoft:add_auth","ref":"add_auth","sha":"28221eecd53a6ed7aa60a4266289f4432b01668d","user":{"login":"Sassoft","id":12209346,"avatar_url":"https://avatars.githubusercontent.com/u/12209346?v=3","gravatar_id":"","url":"https://api.github.com/users/Sassoft","html_url":"https://github.com/Sassoft","followers_url":"https://api.github.com/users/Sassoft/followers","following_url":"https://api.github.com/users/Sassoft/following{/other_user}","gists_url":"https://api.github.com/users/Sassoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Sassoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sassoft/subscriptions","organizations_url":"https://api.github.com/users/Sassoft/orgs","repos_url":"https://api.github.com/users/Sassoft/repos","events_url":"https://api.github.com/users/Sassoft/events{/privacy}","received_events_url":"https://api.github.com/users/Sassoft/received_events","type":"User","site_admin":false},"repo":{"id":50298879,"name":"tutu","full_name":"Sassoft/tutu","owner":{"login":"Sassoft","id":12209346,"avatar_url":"https://avatars.githubusercontent.com/u/12209346?v=3","gravatar_id":"","url":"https://api.github.com/users/Sassoft","html_url":"https://github.com/Sassoft","followers_url":"https://api.github.com/users/Sassoft/followers","following_url":"https://api.github.com/users/Sassoft/following{/other_user}","gists_url":"https://api.github.com/users/Sassoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Sassoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sassoft/subscriptions","organizations_url":"https://api.github.com/users/Sassoft/orgs","repos_url":"https://api.github.com/users/Sassoft/repos","events_url":"https://api.github.com/users/Sassoft/events{/privacy}","received_events_url":"https://api.github.com/users/Sassoft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sassoft/tutu","description":"Tutu service","fork":false,"url":"https://api.github.com/repos/Sassoft/tutu","forks_url":"https://api.github.com/repos/Sassoft/tutu/forks","keys_url":"https://api.github.com/repos/Sassoft/tutu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sassoft/tutu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sassoft/tutu/teams","hooks_url":"https://api.github.com/repos/Sassoft/tutu/hooks","issue_events_url":"https://api.github.com/repos/Sassoft/tutu/issues/events{/number}","events_url":"https://api.github.com/repos/Sassoft/tutu/events","assignees_url":"https://api.github.com/repos/Sassoft/tutu/assignees{/user}","branches_url":"https://api.github.com/repos/Sassoft/tutu/branches{/branch}","tags_url":"https://api.github.com/repos/Sassoft/tutu/tags","blobs_url":"https://api.github.com/repos/Sassoft/tutu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sassoft/tutu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sassoft/tutu/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sassoft/tutu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sassoft/tutu/statuses/{sha}","languages_url":"https://api.github.com/repos/Sassoft/tutu/languages","stargazers_url":"https://api.github.com/repos/Sassoft/tutu/stargazers","contributors_url":"https://api.github.com/repos/Sassoft/tutu/contributors","subscribers_url":"https://api.github.com/repos/Sassoft/tutu/subscribers","subscription_url":"https://api.github.com/repos/Sassoft/tutu/subscription","commits_url":"https://api.github.com/repos/Sassoft/tutu/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sassoft/tutu/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sassoft/tutu/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sassoft/tutu/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sassoft/tutu/contents/{+path}","compare_url":"https://api.github.com/repos/Sassoft/tutu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sassoft/tutu/merges","archive_url":"https://api.github.com/repos/Sassoft/tutu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sassoft/tutu/downloads","issues_url":"https://api.github.com/repos/Sassoft/tutu/issues{/number}","pulls_url":"https://api.github.com/repos/Sassoft/tutu/pulls{/number}","milestones_url":"https://api.github.com/repos/Sassoft/tutu/milestones{/number}","notifications_url":"https://api.github.com/repos/Sassoft/tutu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sassoft/tutu/labels{/name}","releases_url":"https://api.github.com/repos/Sassoft/tutu/releases{/id}","deployments_url":"https://api.github.com/repos/Sassoft/tutu/deployments","created_at":"2016-01-24T17:30:50Z","updated_at":"2016-01-24T18:14:06Z","pushed_at":"2016-02-23T13:08:49Z","git_url":"git://github.com/Sassoft/tutu.git","ssh_url":"git@github.com:Sassoft/tutu.git","clone_url":"https://github.com/Sassoft/tutu.git","svn_url":"https://github.com/Sassoft/tutu","homepage":null,"size":92,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Sassoft:master","ref":"master","sha":"949d7d67dbe9b57fcf833d8dbef9e6267e5db28f","user":{"login":"Sassoft","id":12209346,"avatar_url":"https://avatars.githubusercontent.com/u/12209346?v=3","gravatar_id":"","url":"https://api.github.com/users/Sassoft","html_url":"https://github.com/Sassoft","followers_url":"https://api.github.com/users/Sassoft/followers","following_url":"https://api.github.com/users/Sassoft/following{/other_user}","gists_url":"https://api.github.com/users/Sassoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Sassoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sassoft/subscriptions","organizations_url":"https://api.github.com/users/Sassoft/orgs","repos_url":"https://api.github.com/users/Sassoft/repos","events_url":"https://api.github.com/users/Sassoft/events{/privacy}","received_events_url":"https://api.github.com/users/Sassoft/received_events","type":"User","site_admin":false},"repo":{"id":50298879,"name":"tutu","full_name":"Sassoft/tutu","owner":{"login":"Sassoft","id":12209346,"avatar_url":"https://avatars.githubusercontent.com/u/12209346?v=3","gravatar_id":"","url":"https://api.github.com/users/Sassoft","html_url":"https://github.com/Sassoft","followers_url":"https://api.github.com/users/Sassoft/followers","following_url":"https://api.github.com/users/Sassoft/following{/other_user}","gists_url":"https://api.github.com/users/Sassoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Sassoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sassoft/subscriptions","organizations_url":"https://api.github.com/users/Sassoft/orgs","repos_url":"https://api.github.com/users/Sassoft/repos","events_url":"https://api.github.com/users/Sassoft/events{/privacy}","received_events_url":"https://api.github.com/users/Sassoft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sassoft/tutu","description":"Tutu service","fork":false,"url":"https://api.github.com/repos/Sassoft/tutu","forks_url":"https://api.github.com/repos/Sassoft/tutu/forks","keys_url":"https://api.github.com/repos/Sassoft/tutu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sassoft/tutu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sassoft/tutu/teams","hooks_url":"https://api.github.com/repos/Sassoft/tutu/hooks","issue_events_url":"https://api.github.com/repos/Sassoft/tutu/issues/events{/number}","events_url":"https://api.github.com/repos/Sassoft/tutu/events","assignees_url":"https://api.github.com/repos/Sassoft/tutu/assignees{/user}","branches_url":"https://api.github.com/repos/Sassoft/tutu/branches{/branch}","tags_url":"https://api.github.com/repos/Sassoft/tutu/tags","blobs_url":"https://api.github.com/repos/Sassoft/tutu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sassoft/tutu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sassoft/tutu/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sassoft/tutu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sassoft/tutu/statuses/{sha}","languages_url":"https://api.github.com/repos/Sassoft/tutu/languages","stargazers_url":"https://api.github.com/repos/Sassoft/tutu/stargazers","contributors_url":"https://api.github.com/repos/Sassoft/tutu/contributors","subscribers_url":"https://api.github.com/repos/Sassoft/tutu/subscribers","subscription_url":"https://api.github.com/repos/Sassoft/tutu/subscription","commits_url":"https://api.github.com/repos/Sassoft/tutu/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sassoft/tutu/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sassoft/tutu/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sassoft/tutu/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sassoft/tutu/contents/{+path}","compare_url":"https://api.github.com/repos/Sassoft/tutu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sassoft/tutu/merges","archive_url":"https://api.github.com/repos/Sassoft/tutu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sassoft/tutu/downloads","issues_url":"https://api.github.com/repos/Sassoft/tutu/issues{/number}","pulls_url":"https://api.github.com/repos/Sassoft/tutu/pulls{/number}","milestones_url":"https://api.github.com/repos/Sassoft/tutu/milestones{/number}","notifications_url":"https://api.github.com/repos/Sassoft/tutu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sassoft/tutu/labels{/name}","releases_url":"https://api.github.com/repos/Sassoft/tutu/releases{/id}","deployments_url":"https://api.github.com/repos/Sassoft/tutu/deployments","created_at":"2016-01-24T17:30:50Z","updated_at":"2016-01-24T18:14:06Z","pushed_at":"2016-02-23T13:08:49Z","git_url":"git://github.com/Sassoft/tutu.git","ssh_url":"git@github.com:Sassoft/tutu.git","clone_url":"https://github.com/Sassoft/tutu.git","svn_url":"https://github.com/Sassoft/tutu","homepage":null,"size":92,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Sassoft/tutu/pulls/5"},"html":{"href":"https://github.com/Sassoft/tutu/pull/5"},"issue":{"href":"https://api.github.com/repos/Sassoft/tutu/issues/5"},"comments":{"href":"https://api.github.com/repos/Sassoft/tutu/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Sassoft/tutu/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Sassoft/tutu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sassoft/tutu/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Sassoft/tutu/statuses/28221eecd53a6ed7aa60a4266289f4432b01668d"}}}}