blhack-it / tableasy

Simplify table generation in Ruby on Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tableasy

Rails tables builder gem that makes creating tables painless.

Usage

table = Tableasy::Table.new

table.add_row [helper.header_cell('Name', class: "hc")], { class: "rc" }
table.add_row [helper.table_cell('John')]

render_table(table)

Output

<table><tr class=\"rc\"><th class=\"hc\">Name</th></tr><tr><td>John</td></tr></table>

Rendered

Name
John

About

Simplify table generation in Ruby on Rails


Languages

Language:Ruby 100.0%