Method: Tenon::ApplicationHelper#table_row

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

#table_row(*args) ⇒ Object



16
17
18
19
20
21
22
23
24
# File 'app/helpers/tenon/application_helper.rb', line 16

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