M
M
madcore2015-06-30 23:40:32
Ruby on Rails
madcore, 2015-06-30 23:40:32

How to make file_field a solid button with custom styles?

How to make file_field a solid big button without the caption "File is not ..." and apply styles to it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Kononenko, 2015-06-30
@premas

f.file_field :file, id: "file"
label.btn.btn-primary for="file" Прикрепить файл

input[type=file] {display: none}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question