<% show_fields ||= "yes" %> <%= form_for(@auth_shopping_cart_item, url: @auth_shopping_cart_item.new_record? ? cart_items_path : cart_item_path(@auth_shopping_cart_item), method: @auth_shopping_cart_item.new_record? ? :post : :put, namespace: @auth_shopping_cart_item.id.to_s) do |f| %> <% if @auth_shopping_cart_item.errors.any? %>

<%= pluralize(@auth_shopping_cart_item.errors.count, "error") %> prohibited this auth_shopping_cart_item from being saved:

<% end %>
"> <% @auth_shopping_cart_item.class.attribute_names.keep_if{|c| !@auth_shopping_cart_item.field_names_to_skip_while_making_form.include? c.to_s}.each do |attr| %> <%= text_field_tag "cart_item[#{attr}]" ,@auth_shopping_cart_item.send("#{attr}"), :id => "#{@auth_shopping_cart_item.id.to_s}_cart_item_#{attr}" %> <%= label_tag("#{@auth_shopping_cart_item.id.to_s}_cart_item_#{attr}") %> <% end %>
<%= f.submit class: "card" %>
<% end %>