I’ve started working through the book “Agile web development with
Rails” and so far everything has been great.
I’m on page 56, 57 trying to create the admin tool for the example
I’m on OS X Panther 10.3.9. I have checked the Errata on the website
and tried some of the suggestions there, but nothing has worked. When
I type… ruby/generate scaffold Product Admin I get an error that
says Access denied for user ‘root’@‘localhost’ (using password: NO).
In the book it states this could be a problem with leaving parts of the
database.yml config file blank. I’ve tried both leaving it blank and
filling in an explicit user and password. I still get the same error.
When I tried to view the page at localhost:3000/admin I get the error
Routing Error Recognition failed for “/admin”.
I’m not sure where to go from here. When I originally set up Ruby and
Ruby on Rails on my machine I followed a tutorial from the O’Reilly
network and the database connections worked just fine. (I know this
because I remember being completely amazed at how I could alter the db
and have the admin section change instantly!)
The only thing I have changed from the time of doing the O’Reilly
tuturial and buying the books is upgrading to Rails 1.0.
I’ve tried entering the username as root and the root pass in the
database.yml configuration, but that didn’t seem to work. I don’t know
why Rails continues to try to access the db as root.
I’ve checked my priveleges in mysql (4.1.14) and everything seems to be
ok for the user I have set up for the “Depot” example. I’ve even
connected with the user to the db through the console. So, to the best
of my knowledge the user I’m connecting under has the right access to
Since the website suggested turning to this mailing list for help…
here I am. I hope someone out there is apply to help.
Thanks very much.