Total Ruby N00b here with a question about the Hibbs OnLamp tutorial.
I’m trying to hook up to my cookbook database and I’m getting:
ActiveRecord::StatementInvalid in Recipe#index
Mysql::Error: #42S02Table ‘cookbook.recipes’ doesn’t exist: SELECT
COUNT(*)
FROM recipes
RAILS_ROOT: ./script/…/config/…
My thoughts:
I think I’m not actually connecting to MySQL.
My database.yml looks like this for tutorial purposes:
development:
adapter: mysql
database: cookbook
username: root
password:
test:
adapter: mysql
database: cookbook
username: root
password:
production:
adapter: mysql
database: cookbook
username: root
password:
I’m running on windoze for testing and development purposes.
I’m using SQLFront for database creation and admin.
I can log in and see everything and I can see the data source and tables
in
radrails as well.
Just can’t connect.
thoughts?
Thanks in advance for helping the noobie. I’m excited about rails and
ruby
and want to get past this hello world stuff into a database app as
quickly
as possible.
Any help is appreciated,
Joshua