{"action":"created","comment":{"url":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls/comments/38718851","id":38718851,"diff_hunk":"@@ -1,11 +1,15 @@\n Rails.application.routes.draw do\n   get '/auth/slack/callback' => 'session#slack_callback'\n \n-  root 'pages#index'\n+  root 'pre_built_pages#top'\n+  get '/wip_term' => 'pre_built_pages#wip_term'\n+  get '/thesis' => 'pre_built_pages#thesis'\n+\n   scope :pages do\n-    get   '*path/edit' => 'pages#edit', as: :edit_page\n+    get '/' => 'pages#index', as: :pages\n+    get '*path/edit' => 'pages#edit', as: :edit_page\n     patch '*path' => 'pages#update', as: :update_page\n-    get   '*path' => 'pages#show', as: :page\n+    get '*path' => 'pages#show', as: :page","path":"config/routes.rb","position":15,"original_position":15,"commit_id":"2b7aa588f524cf2fd6558a379c93ec04ce093b9b","original_commit_id":"2b7aa588f524cf2fd6558a379c93ec04ce093b9b","user":{"login":"demmys","id":2297122,"avatar_url":"https://avatars.githubusercontent.com/u/2297122?v=3","gravatar_id":"","url":"https://api.github.com/users/demmys","html_url":"https://github.com/demmys","followers_url":"https://api.github.com/users/demmys/followers","following_url":"https://api.github.com/users/demmys/following{/other_user}","gists_url":"https://api.github.com/users/demmys/gists{/gist_id}","starred_url":"https://api.github.com/users/demmys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demmys/subscriptions","organizations_url":"https://api.github.com/users/demmys/orgs","repos_url":"https://api.github.com/users/demmys/repos","events_url":"https://api.github.com/users/demmys/events{/privacy}","received_events_url":"https://api.github.com/users/demmys/received_events","type":"User","site_admin":false},"body":"シングルクォーテーションを推奨する方式に変えるので無視","created_at":"2015-09-04T03:20:58Z","updated_at":"2015-09-04T03:20:58Z","html_url":"https://github.com/sfc-arch/rg-team-io/pull/15#discussion_r38718851","pull_request_url":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls/comments/38718851"},"html":{"href":"https://github.com/sfc-arch/rg-team-io/pull/15#discussion_r38718851"},"pull_request":{"href":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls/15","id":44088401,"html_url":"https://github.com/sfc-arch/rg-team-io/pull/15","diff_url":"https://github.com/sfc-arch/rg-team-io/pull/15.diff","patch_url":"https://github.com/sfc-arch/rg-team-io/pull/15.patch","issue_url":"https://api.github.com/repos/sfc-arch/rg-team-io/issues/15","number":15,"state":"open","locked":false,"title":"ナビゲーションバーの追加とレイアウト済みviewの分離","user":{"login":"demmys","id":2297122,"avatar_url":"https://avatars.githubusercontent.com/u/2297122?v=3","gravatar_id":"","url":"https://api.github.com/users/demmys","html_url":"https://github.com/demmys","followers_url":"https://api.github.com/users/demmys/followers","following_url":"https://api.github.com/users/demmys/following{/other_user}","gists_url":"https://api.github.com/users/demmys/gists{/gist_id}","starred_url":"https://api.github.com/users/demmys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demmys/subscriptions","organizations_url":"https://api.github.com/users/demmys/orgs","repos_url":"https://api.github.com/users/demmys/repos","events_url":"https://api.github.com/users/demmys/events{/privacy}","received_events_url":"https://api.github.com/users/demmys/received_events","type":"User","site_admin":false},"body":"To close #13 \r\n\r\nこんな感じでナビゲーションバーを付けました。\r\n\"Thesis\"のとこが暗くなってるのは、hoverした時の挙動です。\r\n![2015-09-03 18 52 37](https://cloud.githubusercontent.com/assets/2297122/9655601/3f6d3860-526d-11e5-821b-f7906f67a2f8.png)\r\n\r\nなお、他のページが増えることによる名前付けの都合から、トップページに表示する授業情報のページのパスを`/pages/2015f/TopPage`の形に変えました。\r\n\r\n![2015-09-03 18 53 05](https://cloud.githubusercontent.com/assets/2297122/9655606/59c36266-526d-11e5-9aea-d5df20490f38.png)\r\nWIP/TERMおよび卒論ページはトップページと同じようにずっと変わらないものを`/pages/WipTerm`、その学期限定の情報を`/pages/2015f/WipTerm`という形式のページに書く想定です。\r\n\r\n増やしたページのアクションをPagesControllerに入れるのは微妙な感じがしたので、PreBuiltPagesControllerを作って、トップページも含めたレイアウト済みのviewは全てそのコントローラーでサーブするようにしました。","created_at":"2015-09-03T09:59:57Z","updated_at":"2015-09-04T03:20:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c41fb0789a74307eeaace93fab9dcef6383260f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls/15/commits","review_comments_url":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls/15/comments","review_comment_url":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sfc-arch/rg-team-io/issues/15/comments","statuses_url":"https://api.github.com/repos/sfc-arch/rg-team-io/statuses/2b7aa588f524cf2fd6558a379c93ec04ce093b9b","head":{"label":"sfc-arch:feature/demmys/navigation_bar","ref":"feature/demmys/navigation_bar","sha":"2b7aa588f524cf2fd6558a379c93ec04ce093b9b","user":{"login":"sfc-arch","id":9364955,"avatar_url":"https://avatars.githubusercontent.com/u/9364955?v=3","gravatar_id":"","url":"https://api.github.com/users/sfc-arch","html_url":"https://github.com/sfc-arch","followers_url":"https://api.github.com/users/sfc-arch/followers","following_url":"https://api.github.com/users/sfc-arch/following{/other_user}","gists_url":"https://api.github.com/users/sfc-arch/gists{/gist_id}","starred_url":"https://api.github.com/users/sfc-arch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfc-arch/subscriptions","organizations_url":"https://api.github.com/users/sfc-arch/orgs","repos_url":"https://api.github.com/users/sfc-arch/repos","events_url":"https://api.github.com/users/sfc-arch/events{/privacy}","received_events_url":"https://api.github.com/users/sfc-arch/received_events","type":"Organization","site_admin":false},"repo":{"id":37115426,"name":"rg-team-io","full_name":"sfc-arch/rg-team-io","owner":{"login":"sfc-arch","id":9364955,"avatar_url":"https://avatars.githubusercontent.com/u/9364955?v=3","gravatar_id":"","url":"https://api.github.com/users/sfc-arch","html_url":"https://github.com/sfc-arch","followers_url":"https://api.github.com/users/sfc-arch/followers","following_url":"https://api.github.com/users/sfc-arch/following{/other_user}","gists_url":"https://api.github.com/users/sfc-arch/gists{/gist_id}","starred_url":"https://api.github.com/users/sfc-arch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfc-arch/subscriptions","organizations_url":"https://api.github.com/users/sfc-arch/orgs","repos_url":"https://api.github.com/users/sfc-arch/repos","events_url":"https://api.github.com/users/sfc-arch/events{/privacy}","received_events_url":"https://api.github.com/users/sfc-arch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sfc-arch/rg-team-io","description":"","fork":false,"url":"https://api.github.com/repos/sfc-arch/rg-team-io","forks_url":"https://api.github.com/repos/sfc-arch/rg-team-io/forks","keys_url":"https://api.github.com/repos/sfc-arch/rg-team-io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sfc-arch/rg-team-io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sfc-arch/rg-team-io/teams","hooks_url":"https://api.github.com/repos/sfc-arch/rg-team-io/hooks","issue_events_url":"https://api.github.com/repos/sfc-arch/rg-team-io/issues/events{/number}","events_url":"https://api.github.com/repos/sfc-arch/rg-team-io/events","assignees_url":"https://api.github.com/repos/sfc-arch/rg-team-io/assignees{/user}","branches_url":"https://api.github.com/repos/sfc-arch/rg-team-io/branches{/branch}","tags_url":"https://api.github.com/repos/sfc-arch/rg-team-io/tags","blobs_url":"https://api.github.com/repos/sfc-arch/rg-team-io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sfc-arch/rg-team-io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sfc-arch/rg-team-io/git/refs{/sha}","trees_url":"https://api.github.com/repos/sfc-arch/rg-team-io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sfc-arch/rg-team-io/statuses/{sha}","languages_url":"https://api.github.com/repos/sfc-arch/rg-team-io/languages","stargazers_url":"https://api.github.com/repos/sfc-arch/rg-team-io/stargazers","contributors_url":"https://api.github.com/repos/sfc-arch/rg-team-io/contributors","subscribers_url":"https://api.github.com/repos/sfc-arch/rg-team-io/subscribers","subscription_url":"https://api.github.com/repos/sfc-arch/rg-team-io/subscription","commits_url":"https://api.github.com/repos/sfc-arch/rg-team-io/commits{/sha}","git_commits_url":"https://api.github.com/repos/sfc-arch/rg-team-io/git/commits{/sha}","comments_url":"https://api.github.com/repos/sfc-arch/rg-team-io/comments{/number}","issue_comment_url":"https://api.github.com/repos/sfc-arch/rg-team-io/issues/comments{/number}","contents_url":"https://api.github.com/repos/sfc-arch/rg-team-io/contents/{+path}","compare_url":"https://api.github.com/repos/sfc-arch/rg-team-io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sfc-arch/rg-team-io/merges","archive_url":"https://api.github.com/repos/sfc-arch/rg-team-io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sfc-arch/rg-team-io/downloads","issues_url":"https://api.github.com/repos/sfc-arch/rg-team-io/issues{/number}","pulls_url":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls{/number}","milestones_url":"https://api.github.com/repos/sfc-arch/rg-team-io/milestones{/number}","notifications_url":"https://api.github.com/repos/sfc-arch/rg-team-io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sfc-arch/rg-team-io/labels{/name}","releases_url":"https://api.github.com/repos/sfc-arch/rg-team-io/releases{/id}","created_at":"2015-06-09T06:49:45Z","updated_at":"2015-09-03T01:43:21Z","pushed_at":"2015-09-04T03:19:54Z","git_url":"git://github.com/sfc-arch/rg-team-io.git","ssh_url":"git@github.com:sfc-arch/rg-team-io.git","clone_url":"https://github.com/sfc-arch/rg-team-io.git","svn_url":"https://github.com/sfc-arch/rg-team-io","homepage":null,"size":356,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"sfc-arch:master","ref":"master","sha":"20e91fd28bb4ec34998768fa8a4174b438ecf7ba","user":{"login":"sfc-arch","id":9364955,"avatar_url":"https://avatars.githubusercontent.com/u/9364955?v=3","gravatar_id":"","url":"https://api.github.com/users/sfc-arch","html_url":"https://github.com/sfc-arch","followers_url":"https://api.github.com/users/sfc-arch/followers","following_url":"https://api.github.com/users/sfc-arch/following{/other_user}","gists_url":"https://api.github.com/users/sfc-arch/gists{/gist_id}","starred_url":"https://api.github.com/users/sfc-arch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfc-arch/subscriptions","organizations_url":"https://api.github.com/users/sfc-arch/orgs","repos_url":"https://api.github.com/users/sfc-arch/repos","events_url":"https://api.github.com/users/sfc-arch/events{/privacy}","received_events_url":"https://api.github.com/users/sfc-arch/received_events","type":"Organization","site_admin":false},"repo":{"id":37115426,"name":"rg-team-io","full_name":"sfc-arch/rg-team-io","owner":{"login":"sfc-arch","id":9364955,"avatar_url":"https://avatars.githubusercontent.com/u/9364955?v=3","gravatar_id":"","url":"https://api.github.com/users/sfc-arch","html_url":"https://github.com/sfc-arch","followers_url":"https://api.github.com/users/sfc-arch/followers","following_url":"https://api.github.com/users/sfc-arch/following{/other_user}","gists_url":"https://api.github.com/users/sfc-arch/gists{/gist_id}","starred_url":"https://api.github.com/users/sfc-arch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfc-arch/subscriptions","organizations_url":"https://api.github.com/users/sfc-arch/orgs","repos_url":"https://api.github.com/users/sfc-arch/repos","events_url":"https://api.github.com/users/sfc-arch/events{/privacy}","received_events_url":"https://api.github.com/users/sfc-arch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sfc-arch/rg-team-io","description":"","fork":false,"url":"https://api.github.com/repos/sfc-arch/rg-team-io","forks_url":"https://api.github.com/repos/sfc-arch/rg-team-io/forks","keys_url":"https://api.github.com/repos/sfc-arch/rg-team-io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sfc-arch/rg-team-io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sfc-arch/rg-team-io/teams","hooks_url":"https://api.github.com/repos/sfc-arch/rg-team-io/hooks","issue_events_url":"https://api.github.com/repos/sfc-arch/rg-team-io/issues/events{/number}","events_url":"https://api.github.com/repos/sfc-arch/rg-team-io/events","assignees_url":"https://api.github.com/repos/sfc-arch/rg-team-io/assignees{/user}","branches_url":"https://api.github.com/repos/sfc-arch/rg-team-io/branches{/branch}","tags_url":"https://api.github.com/repos/sfc-arch/rg-team-io/tags","blobs_url":"https://api.github.com/repos/sfc-arch/rg-team-io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sfc-arch/rg-team-io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sfc-arch/rg-team-io/git/refs{/sha}","trees_url":"https://api.github.com/repos/sfc-arch/rg-team-io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sfc-arch/rg-team-io/statuses/{sha}","languages_url":"https://api.github.com/repos/sfc-arch/rg-team-io/languages","stargazers_url":"https://api.github.com/repos/sfc-arch/rg-team-io/stargazers","contributors_url":"https://api.github.com/repos/sfc-arch/rg-team-io/contributors","subscribers_url":"https://api.github.com/repos/sfc-arch/rg-team-io/subscribers","subscription_url":"https://api.github.com/repos/sfc-arch/rg-team-io/subscription","commits_url":"https://api.github.com/repos/sfc-arch/rg-team-io/commits{/sha}","git_commits_url":"https://api.github.com/repos/sfc-arch/rg-team-io/git/commits{/sha}","comments_url":"https://api.github.com/repos/sfc-arch/rg-team-io/comments{/number}","issue_comment_url":"https://api.github.com/repos/sfc-arch/rg-team-io/issues/comments{/number}","contents_url":"https://api.github.com/repos/sfc-arch/rg-team-io/contents/{+path}","compare_url":"https://api.github.com/repos/sfc-arch/rg-team-io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sfc-arch/rg-team-io/merges","archive_url":"https://api.github.com/repos/sfc-arch/rg-team-io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sfc-arch/rg-team-io/downloads","issues_url":"https://api.github.com/repos/sfc-arch/rg-team-io/issues{/number}","pulls_url":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls{/number}","milestones_url":"https://api.github.com/repos/sfc-arch/rg-team-io/milestones{/number}","notifications_url":"https://api.github.com/repos/sfc-arch/rg-team-io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sfc-arch/rg-team-io/labels{/name}","releases_url":"https://api.github.com/repos/sfc-arch/rg-team-io/releases{/id}","created_at":"2015-06-09T06:49:45Z","updated_at":"2015-09-03T01:43:21Z","pushed_at":"2015-09-04T03:19:54Z","git_url":"git://github.com/sfc-arch/rg-team-io.git","ssh_url":"git@github.com:sfc-arch/rg-team-io.git","clone_url":"https://github.com/sfc-arch/rg-team-io.git","svn_url":"https://github.com/sfc-arch/rg-team-io","homepage":null,"size":356,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls/15"},"html":{"href":"https://github.com/sfc-arch/rg-team-io/pull/15"},"issue":{"href":"https://api.github.com/repos/sfc-arch/rg-team-io/issues/15"},"comments":{"href":"https://api.github.com/repos/sfc-arch/rg-team-io/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sfc-arch/rg-team-io/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/sfc-arch/rg-team-io/statuses/2b7aa588f524cf2fd6558a379c93ec04ce093b9b"}}}}