Sha256: 82ce8106b54d19a38bb3492e351654ed47d933d582f158fd47027c7e32dbe8d9

Contents?: true

Size: 775 Bytes

Versions: 2

Compression:

Stored size: 775 Bytes

Contents

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

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

  <div class="field">
    <%= f.label :title %><br>
    <%= f.text_field :title %>
  </div>
  <div class="field">
    <%= f.label :text %><br>
    <%= f.text_area :text %>
  </div>
 
  <div class="field">
    <%= f.label :image %><br>
    <%= f.file_field :image %>
  </div>
   <div class="field">
    <%= f.hidden_field :category_id %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
navinshop-0.0.2 app/views/navinshop/items/_form.html.erb
navinshop-0.0.1 app/views/navinshop/items/_form.html.erb