Sha256: 89987664d1a4e739ee27298abfd414fe492d8692d5ef78733718bae09c869dd4

Contents?: true

Size: 269 Bytes

Versions: 6

Compression:

Stored size: 269 Bytes

Contents

<h1>Optional Image</h1>
<%= form_with model: @post, url: request.fullpath, method: :patch do |form| %>
  <p>
    <%= form.label :image, "Optional image" %>
    <%= form.bard_file_field :image, accepts: "image" %>
  </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_image.html.erb
bard-file_field-0.1.4 dummy/app/views/validations/optional_image.html.erb
bard-file_field-0.1.3 dummy/app/views/validations/optional_image.html.erb
bard-file_field-0.1.2 dummy/app/views/validations/optional_image.html.erb
bard-file_field-0.1.1 dummy/app/views/validations/optional_image.html.erb
bard-file_field-0.1.0 dummy/app/views/validations/optional_image.html.erb