Displaying 1 result from an estimated 1 matches for "comment_type".
2007 Jul 09
5
Color coding table rows depending on an attribute
...e type of
comment posted. The type of comment is determined from a drop-down
selection. I figured the simplest way would be to do something like I
have below, but I can''t seem to get it to work:
<tr <%= puts ''"style = "background: red;"'' if comment.comment_type ==
''Hiring Process'' %> >
I have 4-5 comment_types that need coloring, so I''ll probably move
this into a helper when I''m finished using some form of,
if comment_type == ''Hiring Process''
puts "style = ''background: red;'...