Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant ChartsController::Phantomjs #16

Open
nicolasconnault opened this issue Dec 11, 2015 · 1 comment
Open

uninitialized constant ChartsController::Phantomjs #16

nicolasconnault opened this issue Dec 11, 2015 · 1 comment

Comments

@nicolasconnault
Copy link

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?

@toshitapandey
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants