Skip to content
This repository has been archived by the owner on Dec 28, 2017. It is now read-only.
/ quick_table Public archive

HashやArrayなどから直接TABLEタグに変換する旧ライブラリ(html_format gem に生まれ変わりました)

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE.txt
MIT
MIT-LICENSE
Notifications You must be signed in to change notification settings

akicho8/quick_table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert object to table html

I do not maintain this library anymore. Please use html_format instead.

Examples

quick_table { {:a => 1, :b => 2} }
# => [a][1]
# => [b][2]

quick_table { [{:a => 1, :b => 2}, {:a => 3, :b => 4}] }
# => [a][b]
# => [1][2]
# => [3][4]

quick_table { [[:a, :b], [ 1,  2], [ 3,  4]] }
# => [a][b]
# => [1][2]
# => [3][4]

quick_table { [:a, :b] }
# => [a][b]

quick_table { :a }
# => [a]

テスト方法

cd test/dummy
rails s
open http://localhost:3000/

About

HashやArrayなどから直接TABLEタグに変換する旧ライブラリ(html_format gem に生まれ変わりました)

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE.txt
MIT
MIT-LICENSE

Stars

Watchers

Forks

Packages

No packages published