Method: Ems::ApplicationHelper#feature_table

Defined in:
app/helpers/ems/application_helper.rb

#feature_table(headings) ⇒ Object

Tables



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'app/helpers/ems/application_helper.rb', line 64

def feature_table(headings)
  haml_tag :table do
    # Make the header
    haml_tag :thead do
      haml_tag :tr do
        headings.each do |h|
          haml_tag :th do
            haml_concat(h)
          end
        end
      end
    end
    # Make content
    haml_tag :tbody do
      yield
    end
  end
end