jgdavey/tabletastic — Issue #24: Dynamic class for row
Author: noctivityinc
Created: 2012-02-13 18:52:03+00:00
State: open

Im trying to pass the value of the variable as the class for the row. For example:

= table_for(@fonts) do |t|
= t.data :actions => :all, :action_prefix => "admin" do
= t.cell :name, :cell_html => {:class => ??}
= t.cell :family

As I am displaying a list of fonts and need the class for each font to be the value of the name of that font.

Any thoughts?