Error on different ruby version -


i keep getting error when rails s

your ruby version 2.1.5, gemfile specified 2.2.1

but when ruby - v ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]

searched around, did bundle install nothing. other solution?

i think should create gemset ruby 2.2.1

  • $ rvm use ruby 2.2.1
  • $ rvm gemset create ruby221railsxxx
  • $ rvm gemset use ruby221railsxxx
  • $ bundle install

this might solve problem.