What version of rails?!?!

by Thomas Aylott Tue, 08 Nov 2005 05:04:00 GMT

How do you figure out what version of rails you have installed?

I finally found out by using the command to create a new rails app and looked in the generated changelog.

Ug.

Your should be able to do rails -v or something.

Any clue? anyone?

RSS feed for this post |Trackback from your site |Add your comment

  1. In the railties directory, the Rakefile contains a version number. I don’t know if this is the best way either, but maybe easier than creating a whole new rails app:

    $ grep ^PKG_VERSION /usr/share/rails/railties/Rakefile PKG _VERSION = ‘0.13.1’ + PKG _BUILD

    Emil Sit 1 day
  2. Actually, I’m running 0.14.3 and I can do just as you desired.

    null 10 days
  3. If you installed Rails via gem, might I suggest

    gem list rails

  4. Apparently Dreamhost has updated to Rails 0.14.3 now, too. I can now just run rails -v and get back Rails 0.14.3 without any trouble at all.

    Thanks you guys :D

  5. The newest rails also has ./script/about that tells you the gory details.