DistroPropaganda/code/rails31/depot_s/app/views/carts/_form.html.erb
2018-11-24 13:20:20 +01:00

17 line
400 B
Text

<%= form_for(@cart) do |f| %>
<% if @cart.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@cart.errors.count, "error") %> prohibited this cart from being saved:</h2>
<ul>
<% @cart.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="actions">
<%= f.submit %>
</div>
<% end %>