{"action":"created","issue":{"url":"https://api.github.com/repos/daido1976/perfect_rails_awesome_events/issues/9","repository_url":"https://api.github.com/repos/daido1976/perfect_rails_awesome_events","labels_url":"https://api.github.com/repos/daido1976/perfect_rails_awesome_events/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/daido1976/perfect_rails_awesome_events/issues/9/comments","events_url":"https://api.github.com/repos/daido1976/perfect_rails_awesome_events/issues/9/events","html_url":"https://github.com/daido1976/perfect_rails_awesome_events/pull/9","id":327640954,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxMzgzNDQ1","number":9,"title":"イベント閲覧機能を実装する","user":{"login":"daido1976","id":35087200,"node_id":"MDQ6VXNlcjM1MDg3MjAw","avatar_url":"https://avatars2.githubusercontent.com/u/35087200?v=4","gravatar_id":"","url":"https://api.github.com/users/daido1976","html_url":"https://github.com/daido1976","followers_url":"https://api.github.com/users/daido1976/followers","following_url":"https://api.github.com/users/daido1976/following{/other_user}","gists_url":"https://api.github.com/users/daido1976/gists{/gist_id}","starred_url":"https://api.github.com/users/daido1976/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daido1976/subscriptions","organizations_url":"https://api.github.com/users/daido1976/orgs","repos_url":"https://api.github.com/users/daido1976/repos","events_url":"https://api.github.com/users/daido1976/events{/privacy}","received_events_url":"https://api.github.com/users/daido1976/received_events","type":"User","site_admin":false},"labels":[{"id":925075031,"node_id":"MDU6TGFiZWw5MjUwNzUwMzE=","url":"https://api.github.com/repos/daido1976/perfect_rails_awesome_events/labels/Ready%20for%20Review","name":"Ready for Review","color":"e99695","default":false}],"state":"open","locked":false,"assignee":{"login":"daido1976","id":35087200,"node_id":"MDQ6VXNlcjM1MDg3MjAw","avatar_url":"https://avatars2.githubusercontent.com/u/35087200?v=4","gravatar_id":"","url":"https://api.github.com/users/daido1976","html_url":"https://github.com/daido1976","followers_url":"https://api.github.com/users/daido1976/followers","following_url":"https://api.github.com/users/daido1976/following{/other_user}","gists_url":"https://api.github.com/users/daido1976/gists{/gist_id}","starred_url":"https://api.github.com/users/daido1976/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daido1976/subscriptions","organizations_url":"https://api.github.com/users/daido1976/orgs","repos_url":"https://api.github.com/users/daido1976/repos","events_url":"https://api.github.com/users/daido1976/events{/privacy}","received_events_url":"https://api.github.com/users/daido1976/received_events","type":"User","site_admin":false},"assignees":[{"login":"daido1976","id":35087200,"node_id":"MDQ6VXNlcjM1MDg3MjAw","avatar_url":"https://avatars2.githubusercontent.com/u/35087200?v=4","gravatar_id":"","url":"https://api.github.com/users/daido1976","html_url":"https://github.com/daido1976","followers_url":"https://api.github.com/users/daido1976/followers","following_url":"https://api.github.com/users/daido1976/following{/other_user}","gists_url":"https://api.github.com/users/daido1976/gists{/gist_id}","starred_url":"https://api.github.com/users/daido1976/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daido1976/subscriptions","organizations_url":"https://api.github.com/users/daido1976/orgs","repos_url":"https://api.github.com/users/daido1976/repos","events_url":"https://api.github.com/users/daido1976/events{/privacy}","received_events_url":"https://api.github.com/users/daido1976/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-05-30T09:10:35Z","updated_at":"2018-06-04T06:50:06Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/daido1976/perfect_rails_awesome_events/pulls/9","html_url":"https://github.com/daido1976/perfect_rails_awesome_events/pull/9","diff_url":"https://github.com/daido1976/perfect_rails_awesome_events/pull/9.diff","patch_url":"https://github.com/daido1976/perfect_rails_awesome_events/pull/9.patch"},"body":"やったこと\r\n---\r\n- イベント詳細ページの作成\r\n  - EventsController に`show` アクションを追加\r\n  - イベント詳細用のビューを作成\r\n  - 日時を曜日まで表示させる日付・時刻フォーマットを `ar_ja.yml` に追記\r\n- イベント一覧ページの作成\r\n  - イベント一覧を表示するようトップページのビューを編集\r\n  - WelcomeController に未開催のイベントをイベント開始時間の昇順で取得する `index` アクションを追加\r\n- イベント閲覧機能のテストを作成\r\n  - `factory :user` の設定をテストに有用な値に変更 \r\n  - Request spec に EventsController の `show` アクションのテストを追加\r\n  - Request spec に WelcomeController の `index` アクションのテストを追加\r\n\r\n動作確認\r\n---\r\n1. `$ rails s` でサーバーを起動する\r\n2. ブラウザから `http://lvh.me:3000/` にアクセスする\r\n3. 右上の「Twitterでログイン」のリンクをクリック\r\n4. 右上の「イベントを作る」リンクをクリック\r\n5. 全ての項目に正しい値を入力し、作成ボタンを押すと以下の画面1のようにイベント詳細ページにリダイレクトされることを確認する\r\n6. 左上の「Awesome Events」リンク をクリックしてトップページに移動し、画面2のようにイベントの一覧が表示されること確認する\r\n\r\n画面1\r\n<img width=\"1271\" alt=\"screen shot 2018-05-31 at 10 59 33\" src=\"https://user-images.githubusercontent.com/35087200/40757110-ea37e5f6-64c1-11e8-906e-55ab1e3431b7.png\">\r\n\r\n画面2\r\n<img width=\"1279\" alt=\"screen shot 2018-05-31 at 11 00 07\" src=\"https://user-images.githubusercontent.com/35087200/40757210-6792c516-64c2-11e8-8bb0-a908e73e8322.png\">\r\n\r\n\r\nその他\r\n---\r\n- パRails には出てこない内容ですが、どうしても日時の表示に曜日までつけたく、[イベント詳細用のビュー](https://github.com/daido1976/perfect_rails_awesome_events/pull/9/commits/f5811d3d469d4417e181b099dabf066c5d228708#diff-1faf510db26a2bd003c29bc56ab051deR21)で`I18n` の `localize` メソッドと `:format` オプションを使い、[こちらのコミット](https://github.com/daido1976/perfect_rails_awesome_events/pull/9/commits/35799893510a8d856aac54938c0597a11e26c60e)で日付・時刻フォーマットを追加しました！\r\n  - 参考にしたRails ガイドの該当箇所\r\nhttps://railsguides.jp/i18n.html#%E6%97%A5%E4%BB%98%E3%83%BB%E6%99%82%E5%88%BB%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B"},"comment":{"url":"https://api.github.com/repos/daido1976/perfect_rails_awesome_events/issues/comments/394251555","html_url":"https://github.com/daido1976/perfect_rails_awesome_events/pull/9#issuecomment-394251555","issue_url":"https://api.github.com/repos/daido1976/perfect_rails_awesome_events/issues/9","id":394251555,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDI1MTU1NQ==","user":{"login":"kielze","id":12433221,"node_id":"MDQ6VXNlcjEyNDMzMjIx","avatar_url":"https://avatars0.githubusercontent.com/u/12433221?v=4","gravatar_id":"","url":"https://api.github.com/users/kielze","html_url":"https://github.com/kielze","followers_url":"https://api.github.com/users/kielze/followers","following_url":"https://api.github.com/users/kielze/following{/other_user}","gists_url":"https://api.github.com/users/kielze/gists{/gist_id}","starred_url":"https://api.github.com/users/kielze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kielze/subscriptions","organizations_url":"https://api.github.com/users/kielze/orgs","repos_url":"https://api.github.com/users/kielze/repos","events_url":"https://api.github.com/users/kielze/events{/privacy}","received_events_url":"https://api.github.com/users/kielze/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T06:50:06Z","updated_at":"2018-06-04T06:50:06Z","author_association":"COLLABORATOR","body":"良さそうに思いました！\r\nLGTM 👍"}}
{"actor":{"display_login":"kielze"}}