Sha256: 84f1994e15f996a1b9d52c68d084a5ebc7c3b578c63f44d9666af7f0a4c9a498

Contents?: true

Size: 564 Bytes

Versions: 3

Compression:

Stored size: 564 Bytes

Contents

<%= form_for(email) do |form| %>
  <% if email.errors.present? %>
    <ul class="error">
      <% email.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
    </ul>
  <% end %>

  <%= form.label :subject %>
  <%= form.text_field :subject %>
  <br/>

  <%= form.label :message %>
  <%= form.text_area :message %>
  <br/>

  <%= form.label :attachments %>
  <%= multiple_file_upload_field(:email, :attachments, email.attachments) do %>
    <%= link_to "add attachment", "#", class: "add" %>
  <% end %>

  <%= form.submit %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
file_upload-0.0.3 test/dummy/app/views/emails/_form.html.erb
file_upload-0.0.2 test/dummy/app/views/emails/_form.html.erb
file_upload-0.0.1 test/dummy/app/views/emails/_form.html.erb