22 lines
513 B
Plaintext
22 lines
513 B
Plaintext
|
<%= 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 %>
|