Sha256: 974c7670feedae0fd4ae59e84af1c5d45bcf950261e0c6b6397c0832fc65df0c
Contents?: true
Size: 588 Bytes
Versions: 9
Compression:
Stored size: 588 Bytes
Contents
= simple_form_for(@<%= singular_table_name %>, class: "ui form") 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| -%> = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> <%- end -%> .actions = f.button :submit, class: 'ui button'
Version data entries
9 entries across 9 versions & 1 rubygems