html.erb addiert die Klasse hinzufügen
<div class="<%= @error ? 'error-class' : 'normal-class' %>">
Ukulily
<div class="<%= @error ? 'error-class' : 'normal-class' %>">