1
0

sold outに関する続き

Posted at

先ほどのものの追記です。

商品の詳細ページに遷移後、売り切れの表示をするためには

      <% if @item.order.present? %>

となる。最初は@をつけておらず、エラーが出ておりましたが
1つの決まりきった商品=@item とでもいう認識でしょうか。

自己満で失礼:zzz:

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0