html.erb conditionally add class

44

html.erb conditionally add class -

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

Comments

Submit
0 Comments