Sha256: 06dcb62f16322cc33667b523257c208e10f436e0f01732e8f0e6f4a8afb8489c

Contents?: true

Size: 558 Bytes

Versions: 7

Compression:

Stored size: 558 Bytes

Contents

<h1>Editing <%= singular_name %></h1>

<%% form_for(:<%= singular_name %>, :url => <%= singular_name %>_path(@<%= singular_name %>.key), :html => {:method => :put}) do |f| %>
  <%%= f.error_messages %>

<% for attribute in attributes -%>
  <p>
    <%%= f.label :<%= attribute.name %> %><br />
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
  </p>
<% end -%>
  <p>
    <%%= f.submit 'Update' %>
  </p>
<%% end %>

<%%= link_to 'Show', <%= singular_name %>_path(@<%= singular_name %>.key) %> |
<%%= link_to 'Back', <%= plural_name %>_path %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datamapper4rails-0.5.2 generators/datamapper_scaffold/templates/view_edit.html.erb
datamapper4rails-0.5.1 generators/datamapper_scaffold/templates/view_edit.html.erb
datamapper4rails-0.5.0 generators/datamapper_scaffold/templates/view_edit.html.erb
datamapper4rails-0.4.0 generators/datamapper_scaffold/templates/view_edit.html.erb
datamapper4rails-0.3.2 generators/datamapper_scaffold/templates/view_edit.html.erb
datamapper4rails-0.3.1 generators/datamapper_scaffold/templates/view_edit.html.erb
datamapper4rails-0.3.0 generators/datamapper_scaffold/templates/view_edit.html.erb