Sha256: 08d11e870ab7397c7c7eeed6856acd10b83ea76e6846fb9165067ff52f11d6b9

Contents?: true

Size: 1 KB

Versions: 48

Compression:

Stored size: 1 KB

Contents

<%%= form_with(model: <%= model_resource_name %>, local: true) 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| -%>
  <div class="field">
<% if attribute.password_digest? -%>
    <%%= form.label :password %>
    <%%= form.password_field :password %>
  </div>

  <div class="field">
    <%%= form.label :password_confirmation %>
    <%%= form.password_field :password_confirmation %>
<% else -%>
    <%%= form.label :<%= attribute.column_name %> %>
    <%%= form.<%= attribute.field_type %> :<%= attribute.column_name %> %>
<% end -%>
  </div>

<% end -%>
  <div class="actions">
    <%%= form.submit %>
  </div>
<%% end %>

Version data entries

48 entries across 48 versions & 5 rubygems

Version Path
aws-record-rails-0.2.0 lib/generators/aws_record/erb/templates/_form.html.erb.tt
aws-record-rails-0.1.0 lib/generators/aws_record/erb/templates/_form.html.erb.tt
railties-5.2.8.1 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.8 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.7.1 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.7 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.6.3 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.6.2 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.6.1 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.6 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.4.6 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.5 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.4.5 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.4.4 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.4.3 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.4.2 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.4.1 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/railties-5.2.3/lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.4 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt
railties-5.2.4.rc1 lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt