Sha256: 07c3afd3da18aefa9cd541ac64b8bc30f9914d01b8a08d7543e238e56458fab0

Contents?: true

Size: 641 Bytes

Versions: 6

Compression:

Stored size: 641 Bytes

Contents

<%= form_for @audio, :html => { :multipart => true } do |f| %>

  <%- if @audio.errors.any? -%>
    <p class="count"><%= pluralize(@audio.errors.count, "error") %> prohibited this from being saved:</p>
    <ul class="errors">
      <% @audio.errors.each do |method, message| %>
        <li class="error"><b><%= method %></b> <i><%= message %></i></li>
      <% end %>
    </ul>
  <%- end -%>
  
  <p>
    <%= f.label :name, "Name:" %>
    <%= f.text_field :name %>
  </p>
  
  <p>
    <%= f.label :file, "File:" %>
    <%= f.file_field :file %>
  </p>
  
  <p>
    <%= f.submit %>
    <%= link_to 'Cancel', audios_path %>
  </p>
  
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
attached-0.5.2 test/dummy/app/views/audios/_form.html.erb
attached-0.5.1 test/dummy/app/views/audios/_form.html.erb
attached-0.5.0 test/dummy/app/views/audios/_form.html.erb
attached-0.4.9 test/dummy/app/views/audios/_form.html.erb
attached-0.4.8 test/dummy/app/views/audios/_form.html.erb
attached-0.4.7 test/dummy/app/views/audios/_form.html.erb