I have a list of items in a table. Some are true and some are false. Is there a way that the true elements can have one background colour whilst the false elements have another. I was considering writing a method in the application helper but I am not sure how is best to write this. So far all i have is
%td.success= person.success
This currently prints out true or false to the table but i would just like to add some background colour to this?
Or why not something like this:
css
then in the haml
Or