Changing ruby version disables rails and bundler -
i'm following along michael hartl's r-o-r tutorial. having hit problem, got advice on grab hartl's reference code github, i've done.
however, when following instructions reference code set in tmp directory, can either rbenv version 2.1.1, in case conflict gem file, or go ruby version 2.0.0-p451 in gem file, in case neither bundler nor rails run. following (for example) -
dans-macbook-air:sample_app_rails_4 dan$ rails ruby version 2.1.1, gemfile specified 2.0.0 dans-macbook-air:sample_app_rails_4 dan$ rbenv local 2.0.0-p451 dans-macbook-air:sample_app_rails_4 dan$ rbenv rehash dans-macbook-air:sample_app_rails_4 dan$ bundler install rbenv: bundler: command not found `bundler' command exists in these ruby versions: 2.1.1 dans-macbook-air:sample_app_rails_4 dan$
i change ruby version in gemfile, i'm trying track down bug want replicate original exactly.
thanks reading - ideas? when installed rails etc, working ruby 2.1.1 - has caused problem?
each version of ruby has own gemset. you'll have install bundler again each version of ruby.
Comments
Post a Comment