_form.html.erb 400 B

1234567891011121314151617
  1. <%= form_for(@cart) do |f| %>
  2. <% if @cart.errors.any? %>
  3. <div id="error_explanation">
  4. <h2><%= pluralize(@cart.errors.count, "error") %> prohibited this cart from being saved:</h2>
  5. <ul>
  6. <% @cart.errors.full_messages.each do |msg| %>
  7. <li><%= msg %></li>
  8. <% end %>
  9. </ul>
  10. </div>
  11. <% end %>
  12. <div class="actions">
  13. <%= f.submit %>
  14. </div>
  15. <% end %>