Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
#3 <@lrsousa, @lucasgaspari> - ajustar chamada de variavel em formulario
Browse files Browse the repository at this point in the history
  • Loading branch information
lrsousa committed Oct 14, 2016
1 parent 5905f5d commit a1b7b82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/demand_blood_banks/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= form_for(demand_blood_bank) do |f| %>
<%= form_for(@demand_blood_bank) do |f| %>
<div class="Container">
<div class="Container-header">
<div class="Grid">
Expand All @@ -12,13 +12,13 @@
</div>
</div>
</div>
<% if demand_blood_bank.errors.any? %>
<% if @demand_blood_bank.errors.any? %>
<div id="error_explanation">

<h2><%= pluralize(demand_blood_bank.errors.count, "error") %> prohibited this demand_blood_bank from being saved:</h2>
<h2><%= pluralize(@demand_blood_bank.errors.count, "error") %> prohibited this demand_blood_bank from being saved:</h2>

<ul>
<% demand_blood_bank.errors.full_messages.each do |message| %>
<% @demand_blood_bank.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
Expand Down

0 comments on commit a1b7b82

Please sign in to comment.