How do i check what version of ruby and rails i have?

Hello,

What is the command to see what version of ruby and what version of
rails i am running?

Thanks in advance!

Kristen

Al Cholic wrote:

Hello,

What is the command to see what version of ruby and what version of
rails i am running?

Thanks in advance!

Kristen

ruby -v

Rama S. wrote:

Al Cholic wrote:

Hello,

What is the command to see what version of ruby and what version of
rails i am running?

Thanks in advance!

Kristen

ruby -v

thanks

How do I do this from inside the code? In case there are version
dependencies (workarounds) that I want to drop off if I upgrade to a
newer version.

Michael

Rama S. wrote:

Al Cholic wrote:

What is the command to see what version of ruby and what version of
rails i am running?

Thanks in advance!

Kristen

ruby -v

rails -v

and if you installed Rails via gem you can use:

gem list

to show the versions of all the components.


Michael W.

there is always script/about

or
ruby -v
rails -v

MichaelLatta wrote:

How do I do this from inside the code? In case there are version
dependencies (workarounds) that I want to drop off if I upgrade to a
newer version.

Rails::VERSION::STRING
=> “1.2.1”

RUBY_VERSION
=> “1.8.5”


Michael W.

On Mar 15, 2007, at 4:34 AM, Al Cholic wrote:

What is the command to see what version of ruby and what version of
rails i am running?

script/about