Getting the following error when trying to use phantomjs from ruby on Ubuntu:
Failure/Error: visit root_path Cliver::Dependency::NotFound: Could not fin
You can also do
$ sudo apt-get install phantomjs
That should automatically add phantomjs to your path, and do everything else necessary for it to run correctly. This worked for me.