prawnpdf / prawn-table

Provides support for tables in Prawn
Other
205 stars 101 forks source link

:align => :center is undefined method #122

Open akkyta opened 4 years ago

akkyta commented 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" ?