Skip to content
New issue

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

colspan #335

Closed
cpanderson opened this issue Mar 24, 2012 · 15 comments
Closed

colspan #335

cpanderson opened this issue Mar 24, 2012 · 15 comments

Comments

@cpanderson
Copy link

I've looked all over and am having trouble using :colspan. I've got the 1.0 RC and I keep getting...

NoMethodError (undefined method `colspan=' for #Prawn::Table::Cell::Text:0x109a1e0a0)

I've been trying to use it like in the documentation...

table = [
[{:content => "blah", :colspan => 2}],
["col1", "col2"]
]

I'm obviously doing something wrong. I've also checked the current issues and I see it implemented like...

table = [
[{content: "blah", colspan:2}],
]

...but that obviously is syntactally wrong.

So confused!

Thanks,

Chris

@practicingruby
Copy link
Member

Someone else will look into your main issue, but...

>> {content: "blah", colspan:2}
=> {:content=>"blah", :colspan=>2}
>> RUBY_VERSION
=> "1.9.3"

@bradediger
Copy link
Member

As @sandal mentioned, that's perfectly valid Ruby 1.9 hash syntax.

As for your colspan issue, colspan wasn't added on master until after 1.0.0.rc1. You can use Bundler to depend on the git version of Prawn if you want colspan support.

-be

@cpanderson
Copy link
Author

Thanks. I will pull the latest version.

@joemsak
Copy link

joemsak commented Oct 18, 2012

e: nvm I'm dumb.

(server restart, durrrr)

@dallas
Copy link

dallas commented Jan 10, 2013

How about releasing a new RC so we don't have to rely on pointing to git for the gem (and I would hope a new RC which includes colspan would be more on track with what you hope to release for 1.0).

@holgum
Copy link

holgum commented Jan 26, 2013

Another vote for a new gem release...

@ahfeel
Copy link

ahfeel commented Feb 11, 2013

+1 for the gem :)

@stonehz
Copy link

stonehz commented Mar 1, 2013

+1

@ajbraus
Copy link

ajbraus commented Jun 6, 2013

+1

1 similar comment
@anu-vaid
Copy link

+1

@johnnyshields
Copy link
Contributor

+1 👍

@farlin
Copy link

farlin commented Nov 11, 2013

+1

2 similar comments
@jo-m
Copy link

jo-m commented Nov 11, 2013

+1

@Cutta
Copy link

Cutta commented Jan 11, 2015

+1

@practicingruby
Copy link
Member

This feature exists in prawn-table, and in the 1.x versions of Prawn before we extracted the gem.

@prawnpdf prawnpdf locked and limited conversation to collaborators Jan 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests