ActiveState Community

Rake File Issues for Ruby on Rails

Posted by crenshawcren_gmail on 2009-01-07 14:19

Ladies and Gentlemen,

Greetings.

The Ruby on Rails Tutorial for Komodo IDE only has got me started in the correct direction and things were moving along quite well until... Here is the issue.
When I want to use the application tool to perform the db:migrate Rake function I saw the following error.

D:/ruby/bin/rake.bat:24: undefined method `require_gem' for main:Object (NoMethodError)

I am running the following.
Ruby 184-20
Ruby Gems 1.3.1
RadRails 0.7.2 is installed as an editor

The error came back and I am using Komodo Studio (free distro).

At a glance does anything jump out at you as to why I got the error I have seen returned to me?

Thanks.

ericp | Wed, 2009-01-07 16:08

For one thing, the "require_gem" method has been dropped in
favor of "gem", and I don't see it anywhere in the source tree
for rubygems version 1.3.1

But is basic Rails working? Is it using a different version of
Ruby or installed rubygems library?

I personally would upgrade to Ruby 1.8.6 unless you have
a strong reason for staying with 1.8.4. The Rails tools
have been tested with 1.8.4, but we can't guarantee that
recent versions of other Ruby components will work with
that version.

crenshawcren_gmail | Wed, 2009-01-07 17:28

Thanks for your advice. I will follow it and make the necessary changes so that I can test and see if things flow better for me.