I’m following this tutorial on learning Ruby, and have followed the instructions on installing the latest version of Ruby (3.2.4
).
However I’m not sure how to switch to 3.2.4
on my Mac so I’m using this version. I have updated the PATH to include this version:
echo 'export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"' >> /Users/USERNAME/.zshrc
however when I do which ruby
it points to the old version path: /Users/username/.rvm/rubies/ruby-2.6.5/bin/ruby
Any idea how to ensure I’m using version 3.2.4
?
I have read that the best way to do this is to add the version to Ruby Version Manager (rvm
) and then control which version to use from there, however I’m not sure how to do that.