Hi all I''m learning to use Rake for migration etc. I wonder if there''s a way to determine the currently used Rails version, so e.g. when installing a new engine using Rake I could check if there''s a version used that''s older as needed and so abort the installation. You know what I mean? ;-) Thanks and greetings, Joshua -- Posted via http://www.ruby-forum.com/.
Hi Joshua script/about will give you the rails version (guess there''s probably a way to retrieve that programmatically). hth Thibaut -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060518/d6614b1d/attachment.html
Rails::VERSION::MAJOR Rails::VERSION::MINOR Rails::VERSION::TINY Or for all three as a string: Rails::VERSION::STRING Tom On 5/18/06, Thibaut Barr?re <thibaut.barrere@gmail.com> wrote:> > Hi Joshua > > script/about will give you the rails version (guess there''s probably a way > to retrieve that programmatically). > > hth > > > Thibaut > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- email : tom at popdog.net