Sha256: 112975b92fadc2af24c01f27cf99dd83861678b238f92cae9feb89381bf61b8c

Contents?: true

Size: 518 Bytes

Versions: 15

Compression:

Stored size: 518 Bytes

Contents

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

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
restspec-0.3.2 examples/store-api/app/views/categories/_form.html.erb
restspec-0.3.1 examples/store-api/app/views/categories/_form.html.erb
restspec-0.3.0 examples/store-api/app/views/categories/_form.html.erb
restspec-0.2.6 examples/store-api/app/views/categories/_form.html.erb
restspec-0.2.5 examples/store-api/app/views/categories/_form.html.erb
restspec-0.2.4 examples/store-api/app/views/categories/_form.html.erb
restspec-0.2.3 examples/store-api/app/views/categories/_form.html.erb
restspec-0.2.2 examples/store-api/app/views/categories/_form.html.erb
restspec-0.2.1 examples/store-api/app/views/categories/_form.html.erb
restspec-0.2 examples/store-api/app/views/categories/_form.html.erb
restspec-0.1 examples/store-api/app/views/categories/_form.html.erb
restspec-0.0.4 examples/store-api/app/views/categories/_form.html.erb
restspec-0.0.3 examples/store-api/app/views/categories/_form.html.erb
restspec-0.0.2 examples/store-api/app/views/categories/_form.html.erb
restspec-0.0.1 examples/store-api/app/views/categories/_form.html.erb