Skip to content

Instantly share code, notes, and snippets.

View vishaltps's full-sized avatar

Vishal Sadriya vishaltps

View GitHub Profile
First Get the latest version of ruby through RVM
TO KNOW THE LATEST VERSION OF RUBY
$ rvm list known
CURRENTLY THE LATEST VERSION IS RUBY-2.5
$ rvm install ruby 2.5
TO KNOW WHICH SUB-VERSION OF RUBY-2.5 IS LOADED RUN
$ rvm list
@vishaltps
vishaltps / generate_rvm
Last active November 28, 2018 07:15
Generate Ruby Version and Gemset Files With RVM
RVM, the ruby version manager, is a fairly flexible tool that supports a number of workflows. The rvm utility can be used to generate both a .ruby-version file and a .ruby-gemset file for a given project.
```
$ rvm --ruby-version use 2.5.3@my_project
```
This will generate a .ruby-version file in your current project directory that points RVM to the 2.5.3 version of Ruby. It will also create a .ruby-gemset file that RVM will use for managing this project’s gemset.
@vishaltps
vishaltps / rais_app_with_rvm.txt
Created March 28, 2018 12:58
Create new rails Application with RVM
# create and use the new RVM gemset
$ rvm use --create ruby-2.5.0@awesome_rails_project
# install rails into the blank gemset
$ gem install rails
# generate the new rails project
$ rails new awesome_rails_project
# go into the new project directory and create an .rvmrc for the gemset
@vishaltps
vishaltps / installation.txt
Created March 28, 2018 12:53
How to install RVM in Ubuntu
Steps for installation of ruby with RVM
Command 1 > gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
Command 2 > \curl -sSL https://get.rvm.io | bash -s stable
Please run below command which is very important after successfull run of Command 2
After install of rvm, On last 2 lines there will be line in quotation which start with 'source .....'. please copy that text and run in terminal.
Check Rvm installed or not with below command