<h2>Welcome to PizzaShop</h2>


<div class="row">

	<% @products.each do |p| %>
		<div class="col-md-3">
			<div>
				<%= p.title %>
			</div>
			<div>
				<img src="<%= p.path_to_image %>" />
			</div>
			<div>
				<%= p.description %>
			</div>
			<div>
				Size: <%= p.size %> cm
			</div>
			<div>
				Price: <%= p.price %> rub.
			</div>												
		</div>
	<% end %>

</div>


<br />
<br />
<button class="btn btn-primary" onclick="something()">Click me!</button>

<h2>Welcome to PizzaShop</h2>


<div class="row">

	<% @products.each do |p| %>
		<div class="col-md-3">
			<div>
				<%= p.title %>
			</div>
			<div>
				<img src="<%= p.path_to_image %>" />
			</div>
			<div>
				<%= p.description %>
			</div>
			<div>
				Size: <%= p.size %> cm
			</div>
			<div>
				Price: <%= p.price %> rub.
			</div>	
			<div>
				<button class="btn btn-sm btn-success">Add to cart</button>
			</div>											
		</div>
	<% end %>

</div>


<br />
<br />
<button class="btn btn-primary" onclick="something()">Click me!</button>

Add button to each product
Add button to each product
