/ Published in: Ruby
![](/img/icon_sav.png?v3)
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>
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)