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.6.0 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.5.9 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.5.8 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.5.7 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.5.6 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.5.5 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.5.4 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.5.3 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.5.2 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.5.1 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.5.0 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.4.9 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.4.8 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.4.7 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.4.6 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.4.5 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.4.4 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.4.3 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.4.2 app/views/auth/shopping/products/_form.html.erb
wordjelly-auth-1.4.0 app/views/auth/shopping/products/_form.html.erb