Sha256: 9a37a71337c474fba8dd2ffbd3033a4ef69e36b1b1638c34415f9e6ccd635a69

Contents?: true

Size: 970 Bytes

Versions: 4

Compression:

Stored size: 970 Bytes

Contents

<%= simple_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 'fuck you capy' %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :email %><br />
    <%= f.text_field :email %>
  </div>
  <div class="field">
    <%= f.input :number, collection: 18..60 %>
  </div>
  <div class="field">
    <%= f.input :stuffed %>
  </div>
  <div class="field">
    <%= f.input :food, collection: ['toast', 'bacon', 'cucumber'], as: :radio_buttons %>
  </div>
  <%= f.simple_fields_for :info do |p| %>
  <div class="field">
    <%= p.input :wage %>
  </div>
  <% end %>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stuffer-0.0.4 spec/teststuff/app/views/users/_form.html.erb
stuffer-0.0.3 spec/teststuff/app/views/users/_form.html.erb
stuffer-0.0.2 lib/teststuff/app/views/users/_form.html.erb
stuffer-0.0.1 lib/teststuff/app/views/users/_form.html.erb