<h2>Welcome to Pizza Shop!</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>
			Price: <%= p.price %> rub
		</div>

		<div>
			Size: <%= p.size %> cm
		</div>

	</div>
	<% end %>

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

<h2>Welcome to Pizza Shop!</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>
			Price: <%= p.price %> rub
		</div>

		<div>
			Size: <%= p.size %> cm
		</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
