Haml: how do I set a dynamic class value?
Not sure. Maybe:
%span{:class => item.dashboardstatus.cssclass }= item.dashboardstatus.status
You can do multiple conditional class selectors with array syntax:
%div{ class: [ ("active" if @thing.active?), ("highlight" if @thing.important?) ] }