I used the thoughtbot laptop script to setup a new Macbook Air (OSX 10.10.5), but when I navigate within a Rails project that contains a
.ruby-version file, running commands such as
rails s returns an errors of:
Your Ruby version is 2.0.0, but your Gemfile specified 2.2.3.
rbenv local within the same directory gives the correct version of 2.2.3.
I'm running the commands in zsh with the following .zshrc:
export PATH="$HOME/.bin:$PATH" eval "$(rbenv init - --no-rehash zsh)" # recommended by brew doctor export PATH="/usr/local/bin:$PATH" export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
I just want to be able to run the Rails app locally and will use something other than rbenv for Ruby version management if need be.