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