Ruby version: 1.8.2 Rails version: 0.14.2 Database: postgresql 8.1.2-beta3 [root@localhost test]# ruby script/generate scaffold post You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.include? [root@localhost test]#
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Oct 27, 2005, at 7:54 PM, Li Jie wrote:> Ruby version: 1.8.2 > Rails version: 0.14.2 > Database: postgresql 8.1.2-beta3 > > > [root@localhost test]# ruby script/generate scaffold postHello Li, this is a known bug. For now, use: ./script/generate scaffold post posts Best, jeremy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (Darwin) iD8DBQFDYZSTAQHALep9HFYRAlJ8AKCMFj4xoRHvFx5tBKkQk+QW2l/7bQCeLd1Q PSAPlZ13eLxUvVEI3Qe0mt8=dUw1 -----END PGP SIGNATURE-----
2005/10/28, Jeremy Kemper <jeremy-w7CzD/W5Ocjk1uMJSBkQmQ@public.gmane.org>:> Hello Li, this is a known bug. For now, use: > ./script/generate scaffold post postsThanks.
Dave Silvester
2005-Oct-28 10:30 UTC
Re: I can''t do ''generate scaffold'' on Rails 0.14.2
On Friday 28 Oct 2005 03:54, Li Jie wrote:> [root@localhost test]# ruby script/generate scaffold post > You have a nil object when you didn''t expect it! > You might have expected an instance of Array. > The error occured while evaluating nil.include? > [root@localhost test]#[Off Topic] I see Jeremy provided a fix. However, just a general Unix safety tip (which I hope you already know, but your example set my alarm bells ringing): there''s no need to run those commands as root!! I guess we all trust DHH not to "rm -rf /" our systems, but you never know - best to play it safe and not run _anything_ as root that doesn''t absolutely need to be run as root. Running as root is like running with scissors... or worse! ;-) Cheers, ~Dave -- Dave Silvester Rent-A-Monkey Website Development Web: http://www.rentamonkey.com/