ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
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.


1 to 2 of 2
  1. Odd error
    2005-05-07 08:32:18  butterfi [View]

  2. Curt Hibbs photo Odd error
    2005-05-02 08:08:21  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

1 to 2 of 2