Sha256: abe70f22e0127547da5ef6c08238e17acdac0f1ca36c8aba3ada493c5e91b7ed

Contents?: true

Size: 768 Bytes

Versions: 2

Compression:

Stored size: 768 Bytes

Contents

<%-
strformfor = "@#{singular_table_name}"
if not namespace_alone.blank? then
  strformfor = "[:#{namespace_alone}, @#{singular_table_name} ]"
end
-%>

<%%= form_for(<%= strformfor %>) 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_partial 'app/views/partials/_form_field.html.erb' %><!-- Beautiful_scaffold - AddField - Do not remove -->
  <div class="actions">
    <%%= f.submit %>
  </div>
<%% end %>


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
beautiful_scaffold-0.0.8 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.0.7 lib/generators/templates/app/views/_form.html.erb