Sha256: e0742aa16c0875deae74f36657aaa63317729a0e80c4f84aa11b3ff1cb8f1b62

Contents?: true

Size: 729 Bytes

Versions: 2

Compression:

Stored size: 729 Bytes

Contents

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devise_meteor-0.1.1 spec/test_app/app/views/products/_form.html.erb
devise_meteor-0.1.0 spec/test_app/app/views/products/_form.html.erb