Currently I have in my view something like this:
<table>
<tr>
<% if item.status == nil %>
<td><%= image_tag "/assets/nil.gif" %></td>
<% else %>
<% if item.status == "1" %>
<td><%= image_tag "/assets/yes.gif" %></td>
<% else %>
<td><%= image_tag "/assets/no.gif" %></td>
<% end %>
<% end %>
</tr>
...
Can I use a ternary operator here? I didn't know where to put the ? or the : when using this combination of embedded ruby and html.