ruby-paypal-example/app/views/payments/_form.html.erb

22 lines
513 B
Plaintext
Raw Normal View History

2013-04-30 05:55:08 +00:00
<%= form_for(@payment) do |f| %>
<% if @payment.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@payment.errors.count, "error") %> prohibited this payment from being saved:</h2>
<ul>
<% @payment.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :profile %><br />
<%= f.text_field :profile %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>