How can I set the class of an element in a Rails view's haml?
For example, suppose I want to set the CSS class of a %td% element that's written like this to the "red" class:
%td= book.author
How would this be written?
That looks like Haml.
You can use either %td.red= book.author or %td{:class => "red"}= book.author.
haml is a given?