Sha256: 86c36237735049711233d676ae8e6d8a6638407685931cebb1f12750c8bb3c6a

Contents?: true

Size: 843 Bytes

Versions: 1

Compression:

Stored size: 843 Bytes

Contents

<%%= form_for <%= item_path :instance_variable => true %> do |f| %>


<%% if @<%= instance_name %>.errors.any? %>
        <div id="error_explanation">
          <h2><%%= pluralize(@<%= instance_name %>.errors.count, "error") %> prohibited this <%= instance_name %>from being saved:</h2>

          <ul>
            <%% @<%= instance_name %>.errors.full_messages.each do |msg| %>
                <li><%%= msg %></li>
            <%% end %>
          </ul>
        </div>
    <%% end %>



<table class="condensed-table">
  <%- for attribute in model_attributes -%>
      <tr>
        <td><%%= f.label :<%= attribute.name %> %></td>
        <td><%%= f.<%= attribute.field_type %> :<%= attribute.name %> %></td>
      </tr>

  <%- end -%>
</table>
<br>
<br>

<%%= f.submit "Submit" ,:style=>"margin:auto",:class=>"btn primary large"%>

<%% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
integratedscaffold-1.0.4 lib/templates/views/erb/_form.html.erb