Sha256: 0dd489ab13171c6c71f68a89e954ed751f589c34e3f998d5af3a6661241715fe
Contents?: true
Size: 538 Bytes
Versions: 4
Compression:
Stored size: 538 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 |msg| li= msg <% for attribute in attributes -%> .field = f.label :<%= attribute.name %> = f.<%= attribute.field_type %> :<%= attribute.name %> <% end -%> .actions = f.submit 'Save'
Version data entries
4 entries across 4 versions & 1 rubygems