私はエビの宝石を使用しています。これは私のshow.pdf.prawnにあります
pdf.text "Customer: #{@customer.name}", :size => 20, :style => :bold, :align => :center
pdf.move_down 10
billing = @customer.billing_addresses.map do |item|
[
'Billing Address', "#{item.billing_address}",
'City', "#{item.city}",
'Pincode', "#{item.pincode}",
'Country', "#{item.country.country_name}",
'State', "#{item.state.state_name}",
'Tel. Work', "#{item.tel_work}",
]
end
pdf.table billing,
:border_width => 0,
:font_size => 11,
:position => :center,
:column_widths => { 0 => 200, 1 => 300},
:row_widths => { 0 => 500, 1 => 500}
そして、このエラーが発生します
エビ::エラー::CannotFit
問題に見えるのは?どうすれば修正できますか?Documentation of Prawn Errors を調べたところ、「CannotFit Raised when Prawn is ask to draw something into a too-small box」と表示されていますが、これは理解できません...問題はすべてが一列に並んでいることだと思います...別々の行に表示する方法???, どんなガイダンスも役に立ちます, よろしくお願いします.!!