<%= csrf_meta_tags %> <%= javascript_include_tag "jquery_ujs.js" %>
x
<%= form_tag "/messages", class: "form_send form_send_1", role: "form", id: "reservation_form" do %>
Отправить
<% end %>
x
<%= form_tag "/messages", class: "form_send form_send_2", role: "form", id: "reservation_form" do %>
Отправить
<% end %>
<% current_basket=0 @current_cart.cart_items.each do |cart_item| current_basket=current_basket+cart_item.quantity end %>
<%=current_basket %>
Каталог товаров
<%=page.name%>
<%=page.products.first.price%> Р
<%= link_to 'Добавить в корзину', cart_items_path(product_id: page.products.first), method: :post %>
<%=raw page.products.first.body%>
<% if not page.products.first.name=='0'%> <% end %> <%=raw page.preview%>