Skip to content

Ruby on Rails – error

I’ve been learning Ruby on Rails this week, following the examples in the “Agile Web Developement with Rails” book. In creating the depot project I hit a snag that I’d like to share, in the hopes that others will find it useful.

I was getting the Access Denied error the authors mention on page 56, when I tried to generate my Admin scaffold. My solution is probably not a safe one, but it’s ok for learning. Go into the user permissions of the MySQL db and make root’s password blank. (I used Webmin for this) I also had to add root to the username fields in the config/database.yml file.

Hope this helps someone.

Leave a Reply

Your email address will not be published. Required fields are marked *