How to know ruby and rails version, and get list of local gems?

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.

Advertisements

Speak Your Mind

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: