ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Rolling with Ruby on Rails
Subject:   error
Date:   2006-02-22 08:24:27
From:   pacodc
Hi,


-I get an error after the step described on page 3:


"Open a command window in the cookbook directory (c:\rails\cookbook) and run the command:


ruby script\generate controller RecipeThis will create a file named recipe_controller.rb containing a skeleton definition for the RecipeController class. Right-click on this file, choose Edit, and add the line scaffold :recipe as shown in Figure 31."


-After doing that, i get this error:


"Mysql::Error in Recipe#new
#42000Unknown database 'cookbook_development'
RAILS_ROOT: ./script/../config/.."


What am i doing wrong??


Thanks,
paco



1 to 1 of 1
  1. Curt Hibbs photo error
    2006-02-22 09:47:35  Curt Hibbs | O'Reilly AuthorO'Reilly Blogger [View]

    • error
      2006-04-28 09:17:47  bwl [View]

1 to 1 of 1