Sha256: fa84aaa4041fc363249a55d6d5b2888598fddaf82829cf243aac52fbc7bb4543

Contents?: true

Size: 540 Bytes

Versions: 12

Compression:

Stored size: 540 Bytes

Contents

= form_for @<%= singular_table_name %> do |f|
  - if @<%= singular_table_name %>.errors.any?
    #error_explanation
      h2 = "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:"
      ul
        - @<%= singular_table_name %>.errors.full_messages.each do |message|
          li = message

<% attributes.each do |attribute| -%>
  .field
    = f.label :<%= attribute.name %>
    = f.<%= attribute.field_type %> :<%= attribute.name %>
<% end -%>
  .actions = f.submit

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
slim-rails-3.7.0 lib/generators/slim/scaffold/legacy_templates/_form.html.slim.tt
slim-rails-3.6.3 lib/generators/slim/scaffold/legacy_templates/_form.html.slim.tt
slim-rails-3.6.2 lib/generators/slim/scaffold/legacy_templates/_form.html.slim.tt
slim-rails-3.6.1 lib/generators/slim/scaffold/legacy_templates/_form.html.slim.tt
slim-rails-3.5.1 lib/generators/slim/scaffold/legacy_templates/_form.html.slim.tt
slim-rails-3.5.0 lib/generators/slim/scaffold/legacy_templates/_form.html.slim.tt
slim-rails-3.2.0 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-3.1.3 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-3.1.2 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-3.1.1 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-3.1.0 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-3.0.1 lib/generators/slim/scaffold/templates/_form.html.slim