bala
bala

Reputation: 436

Two versions of rails showing up when i run gem list rails

I just installed ruby and rails. When i run 'ruby -v' command it shows version of ruby that's currently installed. Similarly, I need to check the version of rails as well. Since rails was installed using RVM, the 'rails -v' command is not working. When i run the 'gem list rails' command, it shows two versions of rails. But when i try 'which rails' command, nothing happens. Please help find the version of rails installed.

Upvotes: 0

Views: 152

Answers (2)

fotanus
fotanus

Reputation: 20126

If you want to know which version a specific app is running, you can simply open Gemfile and see. Should be one of the first lines.

Upvotes: 1

Heartcroft
Heartcroft

Reputation: 1712

Have you tried to run this into your console:

$ rails --version

Can't test from here but I'm pretty sure it was --version with rails.

Upvotes: 2

Related Questions