Sha256: e5b28f07dbed15fcb9c61f2bc48f2f80fa0d0bdee3d2b5e4150e0ba9f15bcfdf

Contents?: true

Size: 843 Bytes

Versions: 23

Compression:

Stored size: 843 Bytes

Contents

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

<%%= form_for(<%= strformfor %>, :html => { :class => "form-horizontal" }) 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="form-actions">
    <%%= f.submit :class => "btn btn-primary" %>
  </div>
<%% end %>


Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
beautiful_scaffold-0.3.3 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.3.2 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.3.1 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.3.0.rc6 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.3.0.rc5 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.3.0.rc4 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.3.0.rc3 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.3.0.rc2 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.3.0.rc1 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.3.0.pre lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.2.7 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.2.6 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.2.5 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.2.4 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.2.3 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.2.2 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.2.1 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.2.0 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.1.9 lib/generators/templates/app/views/_form.html.erb
beautiful_scaffold-0.1.8 lib/generators/templates/app/views/_form.html.erb