Sha256: ef39257657ffb2cba64842e946506223c13858e0b383c03250fa9fdac36554c5

Contents?: true

Size: 658 Bytes

Versions: 26

Compression:

Stored size: 658 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 encodable 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

26 entries across 26 versions & 1 rubygems

Version Path
phocoder-rails-0.0.58 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.57 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.56 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.55 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.54 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.53 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.52 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.51 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.50 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.49 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.48 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.47 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.46 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.45 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.44 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.43 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.42 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.41 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.40 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt
phocoder-rails-0.0.39 lib/generators/phocoder_rails/templates/views/_form.html.erb.tt