Sha256: 2fd0686b7eff56935dccd839861713ab7b448c091fd8f8ea43fa6c3ff0de3af6

Contents?: true

Size: 617 Bytes

Versions: 6

Compression:

Stored size: 617 Bytes

Contents

<h1>Editing <%= 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 'Update' %>
  </p>
<%% end %>

<%%= link_to 'Show', @<%= singular_name %> %> |
<%%= 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_edit.html.erb
view_mapper-0.3.3 lib/view_mapper/views/paperclip/templates/view_edit.html.erb
view_mapper-0.3.2 lib/view_mapper/views/paperclip/templates/view_edit.html.erb
view_mapper-0.3.1 lib/view_mapper/views/paperclip/templates/view_edit.html.erb
view_mapper-0.3.0 lib/view_mapper/paperclip_templates/view_edit.html.erb
view_mapper-0.2.0 lib/view_mapper/paperclip_templates/view_edit.html.erb