-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
質問箱管理画面の追加 #16
base: master
Are you sure you want to change the base?
質問箱管理画面の追加 #16
Conversation
@machida |
414198d
to
65d60f9
Compare
@MashioSano |
3aa39d5
to
af55a6f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
お待たせしました~
一点気になる点をコメントしました。
ご確認のほどよろしくお願いします!
def index | ||
@rooms = Room.page(params[:page]) | ||
@topics = Room.page(params[:page]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rooms
から@topics
に変更した理由が気になりました!👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MashioSano
ご指摘ありがとうございます!
完全な凡ミスを見逃してました!助かります😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MashioSano
ご指摘いただいた箇所を修正しました!
お手すきの際にご確認よろしくお願いいたします!😊
6004752
to
0d07fc1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確認しました!LGTMです!🎊
@KishiKyousuke tallk/app/controllers/rooms_controller.rb Lines 37 to 40 in af55a6f
(既に手元でこの部分を修正されていたらすいません) |
af55a6f
to
6caeb98
Compare
- 入力されたパスワードが間違っている場合、質問箱のトップ画面にリダイレクトされます
0d07fc1
to
02e1490
Compare
@MashioSano |
@komagata |
02e1490
to
dd99e46
Compare
config/locales/ja.yml
Outdated
@@ -1,4 +1,7 @@ | |||
ja: | |||
time: | |||
formats: | |||
default: "%Y/%m/%d %H:%M" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rails-i18n
gemとかにはこういうの含まれているのでそれを使うといいかもです。
@KishiKyousuke レビュー依頼するときはDraftじゃない状態でお願いします〜(未完成でレビュー依頼という意味合いになるので) |
- タイムゾーンを`Asia/Tokyo`に設定
dd99e46
to
41bce93
Compare
@komagata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確認しました、OKですー🙆♂️
ref #11
目的
質問箱作成の際に設定したパスワードを使用して、投稿された質問一覧を確認できる質問箱管理画面にアクセスできるようにする。
変更点
admin/rooms_controller.rb
にshowアクションを追加admin/rooms/show.html.slim
を作成rooms/show.html.slim
に質問箱管理画面へのリンクとパスワード入力フォームを追加