Sha256: 238ab4d46a50d6898e32ffaf95db22ea9b735b1003e1c7060b6b678aaf5ec851

Contents?: true

Size: 594 Bytes

Versions: 4

Compression:

Stored size: 594 Bytes

Contents

<%= form_for(@user) do |f| %>
  <% if @user.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

      <ul>
      <% @user.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :username %><br />
    <%= f.text_field :username %>
  </div>
  <div class="field">
    <%= f.label :email %><br />
    <%= f.text_field :email %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slug-engine-0.1.0 test/dummy/app/views/users/_form.html.erb
slug-engine-0.0.3 test/dummy/app/views/users/_form.html.erb
slug-engine-0.0.2 test/dummy/app/views/users/_form.html.erb
slug-engine-0.0.1 test/dummy/app/views/users/_form.html.erb