Rolling with Ruby on Rails
Subject:   Odd error
Date:   2005-05-01 22:11:23
From:   boboroshi
Setup: OS X 10.4, MySQL 4.0.24-Standard, Ruby 1.8.2, Rails installed by RubyGems as of 01 May 05

I get up to the link for

And it comes back with

NoMethodError in Recipe#new
undefined method `each' for nil:NilClass

When i run RAKE in the cookbook directory, i get something similar:

Tribeca:~/Sites/cookbook $ rake
(in /Users/johnathayde/Sites/cookbook)
rake aborted!
undefined method `fetch_fields' for nil:NilClass

What does that mean?

Root wouldn't work because i had set it up with a password, so i created a user "cook" with full permissions for localhost and no password. I stopped getting access denied errors and started getting theres undefined method errors.

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Odd error
    2005-05-07 08:32:18  butterfi [View]

    I had the same issue. There seems to be an issue with Tiger, but this helped:

    I ran the package installer, then installed the mysql module using GEM:

    sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql

    I also updated my mysql package, but that might have been uneccessary.
  • Curt Hibbs photo Odd error
    2005-05-02 08:08:21  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

    I'm not an OSX person, but a *lot* of the Rails developer's are and could probably help you with quickly. I suggest posting thie problem to the Rails mailing list.

    You can find the link for subscribing to the Rails ML here: