-
Notifications
You must be signed in to change notification settings - Fork 71
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
参考書籍ページで各書籍に紐付くプラクティスへのリンクを追加 #5025
参考書籍ページで各書籍に紐付くプラクティスへのリンクを追加 #5025
Conversation
@isshi-hasegawa @machida |
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.
@SatoshiHaramura
実装お疲れさまでした。
ドキュメントがお役に立ったようで良かったです〜〜
動作の方もコードの方も確認いたしました👍
@isshi-hasegawa |
@komagata |
app/views/books/_book.html.slim
Outdated
@@ -16,6 +16,12 @@ | |||
.card-books-item__description | |||
.a-short-text | |||
= simple_format(book.description) | |||
ul | |||
- if book.practices_books.exists? |
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.
bookから直接practicesが取れるかと思います〜
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.
@komagata
承知致しました。
bookから直接practicesを呼べるようにするために、併せて修正致します。
b3f14ca
to
f6abd2e
Compare
@isshi-hasegawa |
@SatoshiHaramura |
@isshi-hasegawa @komagata |
@SatoshiHaramura デザイン入れましたー |
@machida |
app/views/books/_book.html.slim
Outdated
- book.practices.each do |practice| | ||
li.tag-links__item | ||
= link_to practice.title, practice_path(practice), class: 'tag-links__item-link' | ||
- book.practices.each do |practice| | ||
li.tag-links__item | ||
= link_to practice.title, practice_path(practice), class: 'tag-links__item-link' | ||
- book.practices.each do |practice| | ||
li.tag-links__item | ||
= link_to practice.title, practice_path(practice), class: 'tag-links__item-link' |
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.
@machida
お疲れ様です。
先日デザインを入れて頂いた際に、上記のコードが重複しているように見受けられるのですが、削除してもよろしいでしょうか?ご確認お願い致します🙏
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.
@SatoshiHaramura すいません!デザイン 調整のために書いたものを消し忘れてました🙇♂️ 消しておきますー
@SatoshiHaramura 修正しましたー。多分、lintも通ると思いますー |
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です〜🙆♂️
Issue
概要
参考書籍ページにおいて、各書籍に紐付くプラクティスへのリンクを追加しました。
確認方法
feature/add-link-to-practice-lassociated-with-book-in-reference-books
をローカルに取り込む。bin/rails s
でローカル環境を立ち上げる。/books
にアクセスする。確認内容
1-1. プラクティス個別ページへのリンクが表示されていることを確認する。
1-2. プラクティス個別ページへのリンクをクリックし、
/practices/:id
へアクセスできることを確認する。2-1 何も表示されないことを確認する。
変更前
変更後
/books
にアクセスしたときの、参考書籍ページ↓
プラクティス個別ページへのリンクをクリック後の、プラクティス個別ページ