views:

7

answers:

0

I have my controller to generate report using rails Prawn. The problem that i face is, i could only use the argument that is passed while calling the Prawn::Document.generate(a,b,c,d). But i cannot use any instance variable in Prawn pdf program, while that instant variable is in controller class. HOw to use the the instance variable in Prawn program?