Sha256: c276153ee345e46b8aef1aa9d875be12d4c5df5a37e90d1d7b400ff493a78b61

Contents?: true

Size: 263 Bytes

Versions: 6

Compression:

Stored size: 263 Bytes

Contents

<h1>File With Max Size</h1>
<%= form_with model: @post, url: request.fullpath, method: :patch do |form| %>
  <p>
    <%= form.label :file, "File" %>
    <%= form.bard_file_field :file, max: 100.kilobytes %>
  </p>

  <p><%= form.submit "Submit" %></p>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bard-file_field-0.1.5 dummy/app/views/validations/optional_file_with_max_size.html.erb
bard-file_field-0.1.4 dummy/app/views/validations/optional_file_with_max_size.html.erb
bard-file_field-0.1.3 dummy/app/views/validations/optional_file_with_max_size.html.erb
bard-file_field-0.1.2 dummy/app/views/validations/optional_file_with_max_size.html.erb
bard-file_field-0.1.1 dummy/app/views/validations/optional_file_with_max_size.html.erb
bard-file_field-0.1.0 dummy/app/views/validations/optional_file_with_max_size.html.erb