Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% for i in (0...3) %>
- <div class="card">
- <div class="img-padding">
- <img src="https://image.shutterstock.com/z/stock-photo--d-rendered-illustration-of-the-words-stock-photo-1329169754.jpg" class="card-img-top" alt="...">
- </div>
- <div class="card-body">
- <h5 class="card-title"><%= Product.all[i].name %></h5>
- <p><%= Product.all[i].description %></p>
- <div class="d-flex justify-content-between">
- <span>Cena: <%= Product.all[i].price %> ZŁ</span><span align="right">Pozostało sztuk: <%= Product.all[i].quantity %></span>
- </div>
- <%= link_to "Opis...", product_path, { :id=>"#{i}" } %>
- </div>
- </div>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement