我想在以下代码块中显示通过CarrierWave上传的图像。现在我可以定义图像大小了吗?
<%= 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 %>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句