phantomjs.rb icon indicating copy to clipboard operation
phantomjs.rb copied to clipboard

uninitialized constant ChartsController::Phantomjs

Open nicolasconnault opened this issue 9 years ago • 1 comments

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?

nicolasconnault avatar Dec 11 '15 01:12 nicolasconnault

Any solution yet?? I am facing the same issue.

toshitapandey avatar May 09 '17 08:05 toshitapandey