def highlight_cell value, colors
      color_value = output_value = color = ''

      colors.each do |k,v|
        if v.kind_of? Array
          color_value = v[0]
          output_value = v[1]
        else
          output_value = color_value = v
        end
        
        if color_value == value
          color = k.to_s
          break
        end
      end

      unless color.empty?
        "<span class='#{color}'>#{output_value}</span>".html_safe
      else
        value
      end
    end
def highlight_cell value, colors
      color_value = output_value = color = ''

      colors.each do |k,v|
        if v.kind_of? Array
          color_value = v[0]
          output_value = v[1]
        else
          output_value = color_value = v
        end
        
        if color_value == value
          color = k.to_s
          break
        end
      end

      unless color.empty?
        "<span class='#{color}'>#{output_value}</span>".html_safe
      else
        value
      end
    end
Lets say that you want to have a visual que for if a user is an admin:
 table_for :user do |t|
   t.column :id
   t.column :admin do |c|
     highlight_cell c.admin, green: true
   end
   t.column :created_at
 end
 You can put a green box around true in the column by passing an array to the color
 where the first value is the actual table value your looking for, while the second item
 is what will be used in the table field. But what if you want to change that true to the
 word 'Admin' and lets put a red box around all the non admins and make them say 'peons':
 table_for :user do |t|
   t.column :id
   t.column :admin do |c|
     highlight_cell c.admin, green: [true, 'Admin'], red: [false, 'peon']
   end
   t.column :created_at
 end