Sha256: a79b4ceba0121c4795a2e7e7d898fcd24ba3635e3dd89ab9e8d5fdaa31480f21
Contents?: true
Size: 495 Bytes
Versions: 4
Compression:
Stored size: 495 Bytes
Contents
= form_for(@<%= singular_name %>) do |f| - if @<%= singular_name %>.errors.any? #errorExplanation %h2= "#{pluralize(@<%= singular_name %>.errors.count, 'error')} prohibited this user from being saved:" %ul - @<%= singular_name %>.errors.full_messages.each do |msg| %li= msg <% for attribute in attributes -%> .field = f.label :<%= attribute.name %> %br = f.<%= attribute.field_type %> :<%= attribute.name %> <% end -%> .actions = f.submit
Version data entries
4 entries across 2 versions & 2 rubygems