Sha256: c79226d99a27cff50d83854774eada96af1e2a9e6495a6300893277e6a167226

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

<h1>Edit <%= @name_singular_camel %></h1>

<%%= error_messages_for :<%= @name_singular %> %>

<%% form(<%= @name_singular %>s_update_url(:id => @<%= @name_singular %>), :class => "edit_<%= @name_singular %>", :id => "edit_<%= @name_singular %>", :method => :put) do %>
<% for column in columns -%>
<% unless column.column_name == "created_at" || column.column_name == "updated_at" -%>
  <p>
    <b><%= column.column_name.singular.camelcase %></b><br />
    <%= column.form_field %>
  </p>
<% end -%>
<% end -%>
  <p>
    <input id="<%= @name_singular %>_submit" name="commit" type="submit" value="Update" />
  </p>
<%% end %>

<%%= link_to("Back", <%= @name_singular %>s_index_url) %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mack-data_mapper-0.5.5 lib/scaffold_generator/templates/app/views/edit.html.erb.template