I've looked through tens of posts regarding this and still can't quite figure it out/haven't found an identical situation. Basically, I have RVM with the default set to Ruby 2.0.0, but when I cd to the directory with my Jekyll page and run
jekyll serve
the result is
/Library/Ruby/Site/1.8/rubygems/dependency.rb:298:in `to_specs': Could not find 'jekyll' (>= 0) among 5 total gem(s) (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:309:in `to_spec'
from /Library/Ruby/Site/1.8/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /usr/bin/jekyll:22
even though in the same directory when I run
ruby -v
the result is
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin12.5.0]
If I run
rvm use 2.0.0@project-directory
and then run
jekyll serve
it works like a charm.
I've tried using .rvmrc and .ruby-version files in the root, and in both cases when I cd to the directory nothing indicates that those are recognized.