Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #3326 (closed defect: untested)

Opened 3 years ago

Last modified 1 year ago

generator fails with confusion message when db libraries missing

Reported by: john@johnleach.co.uk Assigned to: David
Priority: normal Milestone:
Component: ActiveRecord Version: 1.0.0
Severity: minor Keywords:
Cc:

Description

On running "ruby script/generate scaffold Answers admin" on an app configured to use a mysql database on a box without the ruby mysql libraries installed, the error is wrong and totally misleading:

"error Before updating scaffolding from new DB schema, try creating a table for your model (Answers)"

rather than something like: "holy craps you don't have the mysql library installed" or even just "cannot connect to database"

Change History

05/30/07 12:56:00 changed by aeden

  • status changed from new to closed.
  • resolution set to untested.

Please reopen with a test case if this issue still exists.