Women in Technology

Hear us Roar



Article:
  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


http://127.0.0.1:3000/recipe/new


And it comes back with


NoMethodError in Recipe#new
undefined method `each' for nil:NilClass
script/server:48


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
./rakefile:149


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:

    http://wiki.rubyonrails.com/rails/show/HowtoInstallOnOSXTiger


    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:

    http://wiki.rubyonrails.com/rails/show/HomePage