Sha256: 82907b8f3681d537fb8e5fd7364eed19df83e921eb1216b8003d5747f7b50bb8
Contents?: true
Size: 924 Bytes
Versions: 1
Compression:
Stored size: 924 Bytes
Contents
<%%= form_with(model: <%= singular_table_name %>, local: true, builder: StandardFormBuilder) do |form| %> <%% if <%= singular_table_name %>.errors.any? %> <div id="error_explanation"> <h2><%%= pluralize(<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2> <ul> <%% <%= singular_table_name %>.errors.full_messages.each do |message| %> <li><%%= message %></li> <%% end %> </ul> </div> <%% end %> <% attributes.each do |attribute| -%> <% if attribute.password_digest? -%> <%%= form.password_field :password, id: :<%= field_id(:password) %> %> <%%= form.password_field :password_confirmation, id: :<%= field_id(:password_confirmation) %> %> <% else -%> <%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, id: :<%= field_id(attribute.column_name) %> %> <% end -%> <% end -%> <%%= form.submit t('form.send') %> <%% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
odania-0.2.0 | lib/templates/erb/scaffold/_form.html.erb |