twitter-bootstrap gem currently uses bootstrap v 2.3.2 .
And according to Bootstrap version 2.3.2 Documentation For Tables , the available string classes follow:
Optional row classes Use contextual classes to color table rows. .success Indicates a successful or positive action. .error Indicates a dangerous or potentially negative action. .warning Indicates a warning that might need attention. .info Used as an alternative to the default styles.
This is why .success worked, but NOT .danger .
I assume you are looking for a .error class.
source share