Я хочу отображать фотографии в том же фиксированном размере (который я добавил через форму, используя carieerwave): статьи с изображением .
Это мой код:
<div class="section">
<div class="container">
<% @posts.take(4).each do |post| %>
<div class="carda" style="width: 500px; float:left; margin: 20px; height: 430px;">
<div class="card-content">
<%= link_to image_tag(post.image_url, width: 500, height: 250), post %>
<p class="title" style="margin-top: 5px; color:black">
<%= raw link_to post.title, post %>
</p>
</div>
</div>
<% end %>
</div>
</div>
Не знаю, почему у них другие размеры