[Rails] newbie generate scaffold
3quid
threequid at gmail.com
Mon Apr 3 14:58:29 GMT 2006
ok noted re:grovelling! hehe
yeh all the references to the error I could find referred to the
browser displaying it.
i have granted rights to the user that I have specified in the
databse.yml file and as you say that would spit out a different error.
when i get home I will try recreating the databases/table but I dont
see why it would be the issue.
My system is MacOSX 10.4.5, MySQL 4.1, RoR 1.1 .. (i have done the
rbconfig repair that is needed for OSX10.4 Tiger)
3Quid
email - threequid at gmail.com
-----------------------------------
msn - threequid at gmail.com
aim - threequid at mac.com
-----------------------------------
On 3 Apr 2006, at 15:09:16, Bill Walton wrote:
> Hi 3quid,
> ----- Original Message -----
> From: 3quid
> To: rails at lists.rubyonrails.org
> Sent: 2006-04-03 8:25 AM
> Subject: Re: [Rails] newbie generate scaffold
>
> Hi Bill / Everyone
>
> Thanks for replying, i am getting that error message via the
> command line. Don't know if that helps diagnose what the problem is?
> [BW] It's a start. Personally, I've never seen that at the
> command line before. Makes it an interesting (to me) problem.
>
>
> the book doesnt mention creating any files in the app's directory
> before running the command.. is it the case that I should? The only
> file I have edited in there is database.yml so that it can connect
> to MySQL. Thats all the book instructs you to do
>
> [BW] That's all it should take. Only additional step I've seen
> necessary to date is, on a Windows machine, you might have to grant
> db rights to the ODBC at localhost user. But that throws a whole
> different error.
>
> other than create the databases/tables which it said could be done
> in a GUI app. I used phpMyAdmin .. could this be the problem?
> [BW] Could be. Probably not, but it's worth ruling out. Have you
> tried creating the database from the command line and tables via
> script?
>
> [BW] Also, what's your system environment? What version of RoR
> are you using?
>
> sorry if i am being an ass :)
> [BW] Not at all. And, just FFR, groveling's not required here ;-)
>
> Best regards,
> Bill
>
> 3Quid
> email - threequid at gmail.com
> -----------------------------------
> msn - threequid at gmail.com
> aim - threequid at mac.com
> -----------------------------------
>
>
> On 3 Apr 2006, at 13:47:54, Bill Walton wrote:
>
>> 3quid wrote:
>> <snip>
>>
>>> when I run "ruby script/generate scaffold Product
>>> Admin" from with in my depot directory as
>>> instructed I get the following error ...
>>
>>> 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.each
>>
>> "ruby script\...." gets run from the command line in a Command
>> Window. The
>> error message is one you'd see in a browser when you're running an
>> app (very
>> common error, actually). If you'd fill in the gaps, it'll
>> probably be a
>> very easy fix.
>>
>> Best regards,
>> Bill
>> _______________________________________________
>> Rails mailing list
>> Rails at lists.rubyonrails.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060403/7ad6aa91/attachment.html
More information about the Rails
mailing list