Skip to content

Instantly share code, notes, and snippets.

@jasdeepsingh
Created January 13, 2012 21:40
Show Gist options
  • Save jasdeepsingh/1608842 to your computer and use it in GitHub Desktop.
Save jasdeepsingh/1608842 to your computer and use it in GitHub Desktop.
Prawn: undefined method fetch for # [Model Object] <Bus#x89df798f>
## A message like this is a clear indication of the fact that super in your PDF rendering class needs you use brackets as follows:
class ListingPDF < Prawn::Document
def initialize(bus, view)
super # should be super()
@listing = bus
@view = view
end
end
@jasdeepsingh
Copy link
Author

Glad it helped :) I might've been a little slow with the response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment