Created
January 13, 2012 21:40
-
-
Save jasdeepsingh/1608842 to your computer and use it in GitHub Desktop.
Prawn: undefined method fetch for # [Model Object] <Bus#x89df798f>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Glad it helped :) I might've been a little slow with the response