I'm trying to use the pdf-reader gem (https://github.com/yob/pdf-reader) on my app (RoR with Mongoid). Unfortunately it doesn't work. I've put the gem in the Gemfile (and have done 'bundle install'). Here's my feedback:
uninitialized constant ActionView::CompiledTemplates::PDF
view-file
<% PDF::Reader.new("somefile.pdf")%>
I've tried to include the library in the model, but it doesn't work.
class User
include Mongoid::Document
include ::PDF::Reader
I get this error
uninitialized constant PDF
Do you know how to use the pdf-reader library on Mongoid? I am looking forward to your answers. THX!