I have a table. One of the columns displays an image_file (red.jpg, 
yellow.jpg, green.jpg).  My user wants to be able to sort by the color's 
image file.  I don't know how to do this, and I suck at CSS. There's gotta 
be a way, right?

*<th class="sortable">Pending State</th>
<td><%= image_tag(invoice.pending_state.image_file) if 
invoice.pending_state %><*/td>

As a quick work-around, I just added a word to the table "red", "yellow", 
"green" :
*
<td><%= invoice.pending_state.color_name %></td>*

-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to