Sha256: d442947f4fdb38b04a2e1db6f2b48179bc00eb113b45813203ac987c9caea0e6
Contents?: true
Size: 1.02 KB
Versions: 13
Compression:
Stored size: 1.02 KB
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 :id %><br /> <%= f.text_field :id %> </div> <div class="field"> <%= f.label :title %><br /> <%= f.text_field :title %> </div> <div class="field"> <%= f.label :price %><br /> <%= f.text_field :price %> </div> <div class="field"> <%= f.label :active %><br /> <%= f.check_box :active %> </div> <div class="field"> <%= f.label :description %><br /> <%= f.text_area :description %> </div> <div class="field"> <%= f.label :vendor %><br /> <%= f.select :vendor_id, options_from_collection_for_select(@vendors, 'id', 'name') %> </div> <div class="actions"> <%= f.submit %> </div> <% end %>
Version data entries
13 entries across 13 versions & 1 rubygems