I have no ruby experience - can anyone give me some guidance:
I have a loop where I am outputting a row of a table i.e.
<% for lef in @lefs %>
<tr>
<td></td>
</tr>
<%end%>
I want to have an if-else in there where I can change the class of the td. How would I go about that?
I have a loop where I am outputting a row of a table i.e.
<% for lef in @lefs %>
<tr>
<td></td>
</tr>
<%end%>
I want to have an if-else in there where I can change the class of the td. How would I go about that?