# How to get version of installed rails

**URL:** <https://www.ruby-forum.com/t/how-to-get-version-of-installed-rails/82268>\
**Category:** Rails\
**Created:** [January 18, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/how-to-get-version-of-installed-rails/82268 "2007-01-18T17:17:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![croese](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/839c29/32.png) [@croese](https://www.ruby-forum.com/u/croese)\
**Post date:** [January 18, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/how-to-get-version-of-installed-rails/82268/1 "2007-01-18T17:17:47Z")

</div>

hi guys,

how do i get the version of installed rails?

best regards  
chris

---

<div class="post-metadata">

**Author:** ![croese](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/839c29/32.png) [@croese](https://www.ruby-forum.com/u/croese)\
**Post date:** [January 18, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/how-to-get-version-of-installed-rails/82268/2 "2007-01-18T17:22:37Z")

</div>

On Jan 18, 2007, at 11:17 AM, Christian R. wrote:

> how do i get the version of installed rails?

The most accurate way is probably to do a “gem list | grep rails”.

“rails -v” will give you the version rails reports, but can be  
misleading for test versions (e.g. this will report 1.1.6 for the 1.2  
release candidates, whereas “gem list” will tell you 1.1.6.5848).

-faisal

---

<div class="post-metadata">

**Author:** ![croese](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/839c29/32.png) [@croese](https://www.ruby-forum.com/u/croese)\
**Post date:** [January 18, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/how-to-get-version-of-installed-rails/82268/3 "2007-01-18T17:36:41Z")

</div>

Faisal N Jawdat wrote:

> On Jan 18, 2007, at 11:17 AM, Christian R. wrote:
> 
> > how do i get the version of installed rails?
> 
> The most accurate way is probably to do a “gem list | grep rails”.
> 
> “rails -v” will give you the version rails reports, but can be  
> misleading for test versions (e.g. this will report 1.1.6 for the 1.2  
> release candidates, whereas “gem list” will tell you 1.1.6.5848).
> 
> -faisal  
> thank very much faisal

---

<div class="post-metadata">

**Author:** ![croese](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/839c29/32.png) [@croese](https://www.ruby-forum.com/u/croese)\
**Post date:** [January 19, 2007, 3:23pm UTC](https://www.ruby-forum.com/t/how-to-get-version-of-installed-rails/82268/4 "2007-01-19T15:23:49Z")

</div>

Christian R. wrote:

> hi guys,
> 
> how do i get the version of installed rails?
> 
> best regards  
> chris

you can also use:

ruby script/runner “puts Rails::VERSION::STRING”

from rails project directory to find out on what version of Rails would  
project run.

## best regards, Bojan M.

Bojan M.  
Informatika Mihelac, Bojan M. s.p. | [www.informatikamihelac.com](http://www.informatikamihelac.com)  
 → tools, scripts, tricks from our code lab: [http://source.mihelac.org](http://source.mihelac.org)
