Sha256: 7fd10bd5ad29800313b9c0a1d96bde074ae889134f20bc4731e6e99cbb7d8d12
Contents?: true
Size: 920 Bytes
Versions: 33
Compression:
Stored size: 920 Bytes
Contents
<!-- Renders a localized list of error messages following a form submission. Expects the errors to be in `this.errors`. Renders nothing if there are no errors. --> <def tag="error-messages"> <section class="error-messages" merge-attrs if="&this.errors.size > 0"> <h2 param="heading"> <t key="activerecord.errors.template.header" model="&this.class.model_name.human" count="&this.errors.size"> <%= model = this.class.model_name.human count = this.errors.size count==1 ? "1 error prohibited this #{model} from being saved" : "#{count} errors prohibited this #{model} from being saved" %> </t> </h2> <t key="activerecord.errors.template.body">There were problems with the following fields:</t> <ul param> <% this.errors.to_a.each do |message| -%> <li param><%= message %></li> <% end -%> </ul> </section> </def>
Version data entries
33 entries across 33 versions & 1 rubygems