Open akkyta opened 4 years ago
I am sorry that I am not good at English
I wan't only the first line "text align center" and "bold". Are these method for "text" only ?
here is my code .
`def content(supporters)
data = [["No", "name", "Email", "create_at"]] supporters.each do |f| data += [["#{f.no}", "#{f.name}", "#{f.email}", "#{f.create_time}"]] end table(data, :column_widths => [40,150,150,120], :position => :center)
end`
If I add
:align => :center
like this table(data, :column_widths => [40,150,150,120], :position => :center, :align => :center)
then this error happen.
undefined method `align=' for #
How can I do "text align center" and "bold" ?
I am sorry that I am not good at English
I wan't only the first line "text align center" and "bold". Are these method for "text" only ?
here is my code .
`def content(supporters)
end`
If I add
like this table(data, :column_widths => [40,150,150,120], :position => :center, :align => :center)
then this error happen.
How can I do "text align center" and "bold" ?