Sha256: 3cb11268ad0c851e461f52be506baa5270ecc3282dcdce5ec195b274e1670b15

Contents?: true

Size: 547 Bytes

Versions: 17

Compression:

Stored size: 547 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 'Save'

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
slim-rails-3.0.0 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-2.1.5 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-2.1.4 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-2.1.3 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-2.1.2 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-2.1.1 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-2.1.0 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-2.0.4 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-2.0.3 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-2.0.2 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-2.0.1 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-1.1.1 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-1.1.0 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-1.0.3 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-1.0.2 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-1.0.1 lib/generators/slim/scaffold/templates/_form.html.slim
slim-rails-1.0.0 lib/generators/slim/scaffold/templates/_form.html.slim