Ruby : Content on how to update ruby to the latest version.
Checks
- [x] This is not a duplicate of an existing issue (please have a look through our open issues list to make sure)
- [x] I have thoroughly read and understand The Odin Project Contributing Guide
- [x] Would you like to work on this issue?
Describe your suggestion
Add step by step instructions on how to update ruby version.
- cd to ~/.rbenv
- git pull
- ~/.rbenv/bin/rbenv init
- cd ~/.rbenv/plugins/ruby-build
- git pull
- rbenv install --list-all (to check versions available)
- rbenv install x.y.z (install x.y.z version) e.g rbenv install 3.4.6
Path
Ruby / Rails
Lesson Url
https://www.theodinproject.com/lessons/ruby-installing-ruby#step-2-install-ruby
(Optional) Discord Name
No response
(Optional) Additional Comments
No response
This is good. A couple of thoughts:
- This is OS-independent (doesn't matter if the user is on Linux or MacOS), so I wouldn't put it in with the install instructions. Have a new heading after the install instructions (but before the
Extrasheading, and call it### Updating your Ruby version. Add your instructions there. - The main two places people might run into issues with this would be for the custom enumerables project and the ruby testing stuff. In both of those repos, can you put in PRs that add a note box after the
bundle installcommand in their READMEs? Maybe something like:
[!NOTE]
If the abovebundle installcommand fails by telling you that you don't have the necessary version of Ruby, just follow the instructions to update your Ruby version located in the Installing Ruby lesson in the curriculum.
Edit: Note markdown is made by doing
> [!NOTE]
> Stuff in the notebox appears here
I'll assign you. Let me know if you have any questions about the things I talked about above.
This is good. A couple of thoughts:
1. This is OS-independent (doesn't matter if the user is on Linux or MacOS), so I wouldn't put it in with the install instructions. Have a new heading after the install instructions (but before the `Extras` heading, and call it `### Updating your Ruby version`. Add your instructions there. 2. The main two places people might run into issues with this would be for the custom enumerables project and the ruby testing stuff. In both of those repos, can you put in PRs that add a note box after the `bundle install` command in their READMEs? Maybe something like:Note
If the above
bundle installcommand fails by telling you that you don't have the necessary version of Ruby, just follow the instructions to update your Ruby version located in the Installing Ruby lesson in the curriculum.Edit: Note markdown is made by doing
> [!NOTE] > Stuff in the notebox appears hereI'll assign you. Let me know if you have any questions about the things I talked about above.
I will not put it in with the install instructions, i will make a new custom section heading for it.
also i will add those PRs in other repos editing their README after PR for this issue gets merged
Forgot to assign after my last message.
@JoshDevHub i also added a little bit content on how to set global and local ruby versions.