How to get version of installed rails


#1

hi guys,

how do i get the version of installed rails?

best regards
chris


#2

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


#3

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


#4

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
-> tools, scripts, tricks from our code lab: http://source.mihelac.org