Check list of known versions 1~$ rvm list known Install specific version 1~$ rvm install ruby-2.7.2 Check installed version 1~$ rvm list 2=* ruby-2.7.2 [ x86_64 ] 3ruby-3.0.0 [ x86_64 ] 45# => - current 6# =* - current && default 7# * - default Switch versions 1~$ rvm use ruby-3.0.0 2Using …
Read MoreInstall RVM + Rails Manage Ruby versions (production or not using RVM). Trust me, been there and installing it otherwise is not a walk in the park... 1~$ gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB 2~$ curl -sSL https://get.rvm.io | bash -s stable 3~$ curl -sSL …
Read MoreYou recently installed rails but since you're still learning, you did a lot of stuffs. One day, you got the following error: 1~$ rails --version 2Traceback (most recent call last): 32: from /usr/local/bin/rails:23:in `<main>' 41: from /usr/lib/ruby/2.7.0/rubygems.rb:294:in `activate_bin_path' …
Read MoreIf you no longer wish to use RVM, you can uninstall it by first removing the script calls in your .bashrc file and then removing the RVM files. First, remove the script calls with a text editor like nano: 1~$ nano ~/.bashrc Scroll down to where you see the RVM lines of your ~/.bashrc file: 1... 2# Add RVM to PATH for …
Read MoreGems Ruby applications or libraries. In Rails, you install gems so you would write less code. Creating Gemset To make it easy to manage, create gemset. Think of it as a group of libraries that you can switch to depending on situation. 1~$ rvm gemset list 23gemsets for ruby-2.7.0 (found in …
Read MoreFor instance, we want to create a blog in rails, use the command: 1~$ rails new blog Start the server 1~$ cd blog 2~$ bin/rails server Access it in http://127.0.0.1:3000. See details in this link
Read More