Sha256: bd7ce5bf55229681bf81ddd4933a44ebe51325a6db1ac75d8061cf16c7f1a550

Contents?: true

Size: 408 Bytes

Versions: 245

Compression:

Stored size: 408 Bytes

Contents

-# frozen_string_literal: true
= 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

245 entries across 197 versions & 10 rubygems

Version Path
simple_form-5.3.0 lib/generators/simple_form/templates/_form.html.haml
simple_form-5.2.0 lib/generators/simple_form/templates/_form.html.haml
works_cited-0.1.16 lib/templates/haml/scaffold/_form.html.haml
works_cited-0.1.15 lib/templates/haml/scaffold/_form.html.haml
cookbook-0.1.6 lib/templates/haml/scaffold/_form.html.haml
cookbook-0.1.5 lib/templates/haml/scaffold/_form.html.haml
works_cited-0.1.14 lib/templates/haml/scaffold/_form.html.haml
cookbook-0.1.4 lib/templates/haml/scaffold/_form.html.haml
works_cited-0.1.13 lib/templates/haml/scaffold/_form.html.haml
cookbook-0.1.3 lib/templates/haml/scaffold/_form.html.haml
works_cited-0.1.11 lib/templates/haml/scaffold/_form.html.haml
cookbook-0.1.2 lib/templates/haml/scaffold/_form.html.haml
works_cited-0.1.10 lib/templates/haml/scaffold/_form.html.haml
works_cited-0.1.9 lib/templates/haml/scaffold/_form.html.haml
cookbook-0.1.1 lib/templates/haml/scaffold/_form.html.haml
works_cited-0.1.8 lib/templates/haml/scaffold/_form.html.haml
cookbook-0.1.0 lib/templates/haml/scaffold/_form.html.haml
works_cited-0.1.7 lib/templates/haml/scaffold/_form.html.haml
works_cited-0.1.6 lib/templates/haml/scaffold/_form.html.haml
works_cited-0.1.5 lib/templates/haml/scaffold/_form.html.haml