Sha256: dbc1e0da87a9d6d33878deb375026c4d505c654b3a1667bf94b30bd3b4cbbd6e

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

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

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

<%%= render 'fields', :f => f %>
  <div class="actions">
    <%%= f.submit :class => 'button large' %>
  </div>
<%% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
leonardo-1.9.0.beta1 lib/generators/erb/leosca/templates/_form.html.erb