CarrierWave로 업로드 한 이미지를 다음 코드 블록에 표시하고 싶습니다. 그리고 Ow는 이미지 크기를 정의 할 수 있습니까?첨부 파일의 이미지를 어떻게 표시합니까?
<%= simple_format(@employer.name) %>
<% if @employer.attachment.present? %>
<h4>Attachment</h4>
<div class="attachment">
<p>
<%= link_to File.basename(@employer.attachment.url),
@employer.attachment.url %>
(<%= number_to_human_size(@employer.attachment.size) %>)
</p> </div>
<% end %>