setting cell width using rails plugin prawnto

9 views
Skip to first unread message

Clarice

unread,
Jun 22, 2009, 12:20:13 PM6/22/09
to Prawn
Hello,

I'm having problems setting the width of cells in a table. I'm using
the following code I found in the prawnto documentation and the line
pertaining to cell widths doesn't seem to have any effect. Has anyone
experienced a similar problem? Thanks in advance!

pdf.table mapped,
:widths => { 0 => 300, 1 => 300, 2 => 300, 3 => 300},
:border_width => 0,
:font_size => 10,
:align => { 0 => :left, 1 => :left, 2 => :left, 3
=> :left }

Clarice

Gregory Brown

unread,
Jun 22, 2009, 12:40:02 PM6/22/09
to prawn...@googlegroups.com
On Mon, Jun 22, 2009 at 12:20 PM, Clarice<debin...@gmail.com> wrote:
>
> Hello,
>
> I'm having problems setting the width of cells in a table. I'm using
> the following code I found in the prawnto documentation and the line
> pertaining to cell widths doesn't seem to have any effect. Has anyone
> experienced a similar problem? Thanks in advance!

http://blog.majesticseacreature.com/archives/2009.01/prawn_0.4.html

Deb Prado

unread,
Jun 22, 2009, 12:57:32 PM6/22/09
to prawn...@googlegroups.com
I changed :widths to :column_widths and everything works again
thanks for the link!
Reply all
Reply to author
Forward
0 new messages