I'm using the gem carrierwave
to upload documents in my project, and it works perfect, my problem is when I want to edit the form, having previously saved a document, the button to upload a document or image appears with the caption "No file selected";
How can I do to say the name of the file and its extension, for example doc.pdf
?
I leave the code:
<div class="form-group">
<%= f.label :avatar, "Foto de Perfil" %>
<%= f.file_field :avatar ,class: "btn btn-info btn-sm"%>
</div>