先ほどのものの追記です。
商品の詳細ページに遷移後、売り切れの表示をするためには
<% if @item.order.present? %>
となる。最初は@をつけておらず、エラーが出ておりましたが
1つの決まりきった商品=@item とでもいう認識でしょうか。
自己満で失礼
Go to list of users who liked
先ほどのものの追記です。
商品の詳細ページに遷移後、売り切れの表示をするためには
<% if @item.order.present? %>
となる。最初は@をつけておらず、エラーが出ておりましたが
1つの決まりきった商品=@item とでもいう認識でしょうか。
自己満で失礼
Register as a new user and use Qiita more conveniently
Go to list of users who liked