J
Jim Cochrane
I suppose I should post this in a Rails mailing list or wiki, but the
medium I'm used to is USENET, so I thought I'd try here first. (I don't
think there's a Rails newsgroup - please correct me if I'm wrong -
and I see some Rails postings here sometimes, so I'm assuming this
is appropriate.)
I'm using the book "Ajax on Rails" to learn about Rails development and
after following along for the first example, in chapter 2 (pg 20), I'm
encountering the error:
#28000Access denied for user 'root'@'localhost' (using password: NO)
This happens with the browser pointed to (as the book says to do):
http://localhost:3000/chapter2/myaction
This is after following the instructions to do:
script/generate controller chapter2 myaction
(which was after doing 'rails ajaxonrails; cd ajaxonrails' and starting
the server)
I suspect the problem is that the book forgot to tell me that I need to
create a database for the application and configure it. Is this the
case or should a database not be needed yet at this point - perhaps
something unforeseen is going wrong?
The complete error message I'm getting is:
Mysql::Error in Chapter2Controller#myaction
#28000Access denied for user 'root'@'localhost' (using password: NO)
Thanks!
--
medium I'm used to is USENET, so I thought I'd try here first. (I don't
think there's a Rails newsgroup - please correct me if I'm wrong -
and I see some Rails postings here sometimes, so I'm assuming this
is appropriate.)
I'm using the book "Ajax on Rails" to learn about Rails development and
after following along for the first example, in chapter 2 (pg 20), I'm
encountering the error:
#28000Access denied for user 'root'@'localhost' (using password: NO)
This happens with the browser pointed to (as the book says to do):
http://localhost:3000/chapter2/myaction
This is after following the instructions to do:
script/generate controller chapter2 myaction
(which was after doing 'rails ajaxonrails; cd ajaxonrails' and starting
the server)
I suspect the problem is that the book forgot to tell me that I need to
create a database for the application and configure it. Is this the
case or should a database not be needed yet at this point - perhaps
something unforeseen is going wrong?
The complete error message I'm getting is:
Mysql::Error in Chapter2Controller#myaction
#28000Access denied for user 'root'@'localhost' (using password: NO)
Thanks!
--