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