Sha256: 2e3d97c5918a2e5f33028f1e9d55ed06e10b26683cf55e3c2f7edc8a404efe01

Contents?: true

Size: 654 Bytes

Versions: 14

Compression:

Stored size: 654 Bytes

Contents

<%%= form_for( @<%= file_name.singularize %>, :html => { :multipart => true } ) do |f| %>

  <%% if @<%= file_name.singularize %>.errors.any? %>
    <div id="error_explanation">
      <h2><%%= pluralize(@<%= file_name.singularize %>.errors.count, "error") %> prohibited this image from being saved:</h2>
      <ul>
      <%% @<%= file_name.singularize %>.errors.full_messages.each do |msg| %>
        <li><%%= msg %></li>
      <%% end %>
      </ul>
    </div>
  <%% end %>

  <div class="field">
  	<%%= f.label :file, "Upload image file" %>
  	<%%= f.file_field :file %>
  </div>
  
  <div class="actions">
    <%%= f.submit %>
  </div>
  
<%% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cloudhdr_rails-0.0.14 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.13 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.12 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.11 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.10 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.9 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.8 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.7 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.6 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.5 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.4 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.3 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.2 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt
cloudhdr_rails-0.0.1 lib/generators/cloudhdr_rails/templates/views/_form.html.erb.tt