How to get version of installed rails

hi guys,

how do i get the version of installed rails?

best regards
chris

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

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

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