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