у меня в моем app/views/bar/index.html.haml
следующее
%p= render partial: 'foo', collection: @foos
следующее в моем app/views/bar/_foo.html.haml
частичном:
.foo
.title
%h3= foo['name']
.image¬
= image_tag (foo['image'])['url']
%p.description
:erb
<%= foo['description'] %>
%span.price= number_to_currency foo['price'].to_i
и следующее в моей app/assets/stylesheets/bar.css.sass
таблице стилей:
.foo
border: 2px solid black
border-radius: 5px
background: #FAF7F7
text-align: center
width: 30%
li
text-align: left
img
max-height: 90%
max-width: 90%
и я получаю каждый .foo
div на новой строке. Перерыв вызван css или haml или как я отрисовываю партиалы? Как мне настроить его так, чтобы многие .foo
div отображались в одной строке, прежде чем новая будет отображаться в новой строке?