We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 #Prawn::Table:0x00000000307299a0
How can I do "text align center" and "bold" ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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" ?
The text was updated successfully, but these errors were encountered: