html.erb conditionally add class

51

html.erb conditionally add class -

<div class="<%= @error ? 'error-class' : 'normal-class' %>">

Comments

Submit
0 Comments