It usually starts with installing Homebrew because it is easier to install things with a package manager.
Then you install rbenv because it is easier to manage ruby versions with it.
At this point, remember to update your bash_profile with rbenv init and adjust the PATH, otherwise either you will get error messages about how you system doesn’t understand what is rbenv or it will always show the wrong version with ruby -v. If it shows the wrong ruby version, try which ruby. If it is /usr/bin/ruby, then you have to adjust the PATH because you are using system ruby. If which ruby, shows /Users/username/.rbenv/shims/ruby then you are good.
Now you want to do gem install bundler because that’s how it is easier to install rails with the following
gem install rails
Now you have the latest stable version of rails.
Why can’t I remember theses even after using Rails for so long…
Leave a comment