Sha256: c36f0d3110e648f25733a2cc4ed5ea0dda98cbabae79ee0860806725c48f5e1e
Contents?: true
Size: 695 Bytes
Versions: 15
Compression:
Stored size: 695 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 |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.label :name %><br> <%= f.text_field :name %> </div> <div class="field"> <%= f.label :code %><br> <%= f.text_field :code %> </div> <div class="field"> <%= f.label :price %><br> <%= f.text_field :price %> </div> <div class="actions"> <%= f.submit %> </div> <% end %>
Version data entries
15 entries across 15 versions & 1 rubygems