Sha256: e75d3a770d44af8dcea93a2bb39a1ab06e00b6638a0b1ba941d361efb79e953a

Contents?: true

Size: 373 Bytes

Versions: 10

Compression:

Stored size: 373 Bytes

Contents

= simple_form_for(@<%= singular_table_name %>) do |f|
  = f.error_notification
  = f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present?

  .form-inputs
<%- attributes.each do |attribute| -%>
    = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
<%- end -%>

  .form-actions
    = f.button :submit

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
simple_form-5.3.0 lib/generators/simple_form/templates/_form.html.slim
simple_form-5.2.0 lib/generators/simple_form/templates/_form.html.slim
simple_form-5.1.0 lib/generators/simple_form/templates/_form.html.slim
simple_form-5.0.3 lib/generators/simple_form/templates/_form.html.slim
simple_form-5.0.2 lib/generators/simple_form/templates/_form.html.slim
simple_form-5.0.1 lib/generators/simple_form/templates/_form.html.slim
simple_form-5.0.0 lib/generators/simple_form/templates/_form.html.slim
simple_form-4.1.0 lib/generators/simple_form/templates/_form.html.slim
simple_form-4.0.1 lib/generators/simple_form/templates/_form.html.slim
simple_form-4.0.0 lib/generators/simple_form/templates/_form.html.slim