phantomjs.rb
phantomjs.rb copied to clipboard
uninitialized constant ChartsController::Phantomjs
I installed phantomjs on ubuntu using sudo apt-get install phantomjs. No problem.
I then installed the phantomjs.rb gem using gem install phantomjs.rb. Installed fine.
But when I run Phantomjs.inline() from my rails controller, I get this error:
uninitialized constant ChartsController::Phantomjs
This also happens when I try to run it from irb:
$ irb
irb(main):001:0> Phantomjs
NameError: uninitialized constant Phantomjs
from (irb):1
from /home/nicolas/.rbenv/versions/2.2.0/bin/irb:11:in <main>
I verified that the phantomjs package is installed, it works fine from the command line.
Any ideas?
Any solution yet?? I am facing the same issue.