Sha256: c1aa2682702871039f1b0358992be4e1c0ba96d7cb0f197e5ee90f7b0eae1d1e

Contents?: true

Size: 263 Bytes

Versions: 6

Compression:

Stored size: 263 Bytes

Contents

<h1>Required File</h1>
<%= form_with model: @post, url: request.fullpath, method: :patch do |form| %>
  <p>
    <%= form.label :file, "Required file" %>
    <%= form.bard_file_field :file, required: true %>
  </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/required_file.html.erb
bard-file_field-0.1.4 dummy/app/views/validations/required_file.html.erb
bard-file_field-0.1.3 dummy/app/views/validations/required_file.html.erb
bard-file_field-0.1.2 dummy/app/views/validations/required_file.html.erb
bard-file_field-0.1.1 dummy/app/views/validations/required_file.html.erb
bard-file_field-0.1.0 dummy/app/views/validations/required_file.html.erb