Sha256: 29043a29ae9489d12f8c03b00b291322e2f07d53b851d5fcae2cd1e43b0dbf53

Contents?: true

Size: 1.01 KB

Versions: 59

Compression:

Stored size: 1.01 KB

Contents

<%= form_for(@auth_shopping_product, url: @auth_shopping_product.new_record? ? products_path : product_path(@auth_shopping_product), method: @auth_shopping_product.new_record? ? :post : :put) do |f| %>
  <% if @auth_shopping_product.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@auth_shopping_product.errors.count, "error") %> prohibited this auth_shopping_product from being saved:</h2>

      <ul>
      <% @auth_shopping_product.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  <div class="form_fields">
    <% @auth_shopping_product.class.attribute_names.keep_if{|c| !@auth_shopping_product.field_names_to_skip_while_making_form.include? c.to_s}.each do |attr| %>
      <%=
          text_field :product,  attr.to_sym , :value => @auth_shopping_product.send("#{attr}")
      %>
      <%= 
          label  :product, attr.to_sym
      %>
     
    <% end %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
wordjelly-auth-1.3.9 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.3.8 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.3.7 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.3.6 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.3.5 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.3.3 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.3.2 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.3.1 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.3.0 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.2.9 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.2.8 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.2.6 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.2.5 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.2.4 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.2.3 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.2.2 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.2.1 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.2.0 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.1.9 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.1.8 app/views/auth/shopping/products/_form.html.erb