Just before three days we have requirement to know ruby and rails version, and get list of gems which have installed at our local environment.
To accomplish our requirement we have found following commands, and we have executed them in command prompt.
ruby –v rails –v gem list
Where, “ruby –v” displays information of installed ruby version, “rails –v” displays information of installed rails version and “gem list” displays list of installed gems with version.
Hope this will help you.