Hi,
I thought I’d use the weekend to get into RoR but got stuck quite early.
I’m using RoR with MySQL on my gentoo laptop and am following the depot
application from “Agile Web D. with Ruby on Rails”.
My MySQL is running and has got the products table in it. The user is
called mysql and does not need a password. The database.yml is adapted
so that it uses that user and also has the right location for the socket
(I also tried with an empty user):
development:
adapter: mysql
database: depot_development
username: mysql
password:
socket: /var/run/mysqld/mysqld.sock
Here is the output of running the generator script:
wei-fieg@nono depot $ ruby script/generate scaffold Product Admin
exists app/controllers/
exists app/helpers/
create app/views/admin
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/product.rb
create test/unit/product_test.rb
create test/fixtures/products.yml
uninitialized constant Mysql
and here is the list of my installed gems:
wei-fieg@nono depot $ gem list --local
*** LOCAL GEMS ***
actionmailer (1.1.3, 1.0.1)
Service layer for easy email delivery and testing.
actionpack (1.11.0, 1.9.1)
Web-flow and rendering framework putting the VC in MVC.
actionwebservice (0.9.3, 0.8.1)
Web service support for Action Pack.
activerecord (1.13.0, 1.11.1)
Implements the ActiveRecord pattern for ORM.
activesupport (1.2.3, 1.1.1)
Support and utility classes used by the Rails framework.
mysql (2.7)
MySQL/Ruby provides the same functions for Ruby programs that the
MySQL C API provides for C programs.
rails (0.14.3, 0.13.1)
Web-application framework with template engine, control-flow layer,
and ORM.
rake (0.6.2, 0.5.3)
Ruby based make-like utility.
sources (0.0.1)
This package provides download sources for remote gem installation
Can anyone point me to some solution?
Thanks
Dominik