Rails + Prawn: undefined method `table' for #<Prawn::Document:0x007fda2d594a98>: -


i'm using rails 4 + prawn_rails + latest version of prawn (v 1.1.0) , noticed in changelog here: https://github.com/prawnpdf/prawn/wiki/changelog tables separated.

i followed instructions require "prawn/tables". did adding file in lib directory:

lib/prawn.rb

require "prawn/tables" 

i restarted rails server , still error:

nomethoderror - undefined method `table' #<prawn::document:0x007fda2d594a98>: 

how fix this?

you should add these lines gemfile.

gem 'prawn', '~> 1.2.1' gem 'prawn-table', '~> 0.1.0' 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -