Method: Tenon::ApplicationHelper#table_row

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

#table_row(*args) ⇒ Object



29
30
31
32
33
34
35
36
37
# File 'app/helpers/tenon/application_helper.rb', line 29

def table_row(*args)
  html = '<tr>'
  args.each_with_index do |cell, i|
    html += "<td class='cell-#{i + 1}'>#{cell}</td>"
  end
  html += '</tr>\n'

  html.html_safe
end