Skip to content

Commit

Permalink
「どの本か」がわかるように、在庫 ID を表示するように修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
mikoto2000 committed Sep 7, 2024
1 parent ad74ee6 commit 670c7eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/lending_sets/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<div class="ps-2">
<%= form.collection_select(
:book_stock_ids,
BookStock.all.map {|bs| [bs.id, bs.book_master.title]},
BookStock.all.map {|bs| [bs.id, bs.id.to_s + ":" + bs.book_master.title]},
:first,
:last,
{ multiple: true }
Expand Down
2 changes: 1 addition & 1 deletion app/views/lending_sets/_lending_set.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</strong>
</td>
<td>
<%= lending_set.book_stocks.map{|bs| bs.book_master.title}.join(", ") %>
<%= lending_set.book_stocks.map{|bs| bs.id.to_s + ":" + bs.book_master.title}.join(", ") %>
</td>
</tr>
<tr>
Expand Down

0 comments on commit 670c7eb

Please sign in to comment.