Sha256: 4503046437517bd4b9fb5fc309328d9a2d9c030d3a3159bb15fe72d8f1e156ee
Contents?: true
Size: 601 Bytes
Versions: 9
Compression:
Stored size: 601 Bytes
Contents
= form_with(model: @<%= singular_table_name %>, local: true, 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| -%> .field = f.label :<%= attribute.name %> = f.<%= attribute.field_type %> :<%= attribute.name %> <% end -%> .actions = f.submit class: 'ui button'
Version data entries
9 entries across 9 versions & 1 rubygems