Sha256: 799fdf4bbabceaf8c7a3852eeae5ce42867e89a259d264bd04114782ca366a19

Contents?: true

Size: 566 Bytes

Versions: 6

Compression:

Stored size: 566 Bytes

Contents

<h1>New <%= singular_name %></h1>

<%% form_for(@<%= singular_name %>, :html => { :multipart => true }) do |f| %>
  <%%= f.error_messages %>
<% for attribute in attributes -%>
  <p>
    <%%= f.label :<%= attribute.name %> %><br />
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
  </p>
<%- end -%>
<% for attachment in attachments -%>
  <p>
    <%%= f.label :<%= attachment%> %><br />
    <%%= f.file_field :<%= attachment%> %>
  </p>
<% end -%>
  <p>
    <%%= f.submit 'Create' %>
  </p>
<%% end %>

<%%= link_to 'Back', <%= plural_name %>_path %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
view_mapper-0.3.4 lib/view_mapper/views/paperclip/templates/view_new.html.erb
view_mapper-0.3.3 lib/view_mapper/views/paperclip/templates/view_new.html.erb
view_mapper-0.3.2 lib/view_mapper/views/paperclip/templates/view_new.html.erb
view_mapper-0.3.1 lib/view_mapper/views/paperclip/templates/view_new.html.erb
view_mapper-0.3.0 lib/view_mapper/paperclip_templates/view_new.html.erb
view_mapper-0.2.0 lib/view_mapper/paperclip_templates/view_new.html.erb