Skip to content

uninitialized constant ChartsController::Phantomjs #16

@nicolasconnault

Description

@nicolasconnault

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions