/ Published in: Ruby
if then statement... in a view file *.html.erb:
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<td><% if color.current == "1" %>Yes<% end %></td>