Sha256: 18d6b81bc635b48a8e985589c11d07d9232d740f6071b779d506fb8a29e26b18

Contents?: true

Size: 626 Bytes

Versions: 5

Compression:

Stored size: 626 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>
    <%%= submit_tag("Update") %>
  </p>
<%% end %>

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mack-data_mapper-0.6.0 lib/scaffold_generator/templates/app/views/edit.html.erb.template
mack-data_mapper-0.6.1.1 lib/mack-data_mapper/scaffold_generator/templates/app/views/edit.html.erb.template
mack-data_mapper-0.6.1.2 lib/mack-data_mapper/scaffold_generator/templates/app/views/edit.html.erb.template
mack-data_mapper-0.6.0.1 lib/scaffold_generator/templates/app/views/edit.html.erb.template
mack-data_mapper-0.6.1 lib/mack-data_mapper/scaffold_generator/templates/app/views/edit.html.erb.template