mirror of
https://github.com/iritmaximus/brewery.git
synced 2026-10-12 19:13:49 +03:00
errors use correct variable name
This commit is contained in:
@@ -3,10 +3,10 @@
|
|||||||
<%= form_for(@rating) do |f| %>
|
<%= form_for(@rating) do |f| %>
|
||||||
<% if @rating.errors.any? %>
|
<% if @rating.errors.any? %>
|
||||||
<div style="color: red">
|
<div style="color: red">
|
||||||
<h2><%= pluralize(user.errors.count, "error") %> prohibited this user from being saved:</h2>
|
<h2><%= pluralize(@rating.errors.count, "error") %> prohibited this user from being saved:</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<% user.errors.each do |error| %>
|
<% @rating.errors.each do |error| %>
|
||||||
<li><%= error.full_message %></li>
|
<li><%= error.full_message %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user