Theocacao
Leopard
Design Element
Comment on "Sanity Checking for Scripting Languages"
by Chuck — Dec 24
Well, sort of. The error mentions "ActiveRecord::ConnectionAdapters::MysqlAdapter," which doesn't tell me a lot about where to look. If it mentioned the file in question (maybe it can't), that would be helpful.

Ah, you're right. I think that's actually the fault of Rails catching the error and creating its own message. The standard error Ruby gives in that case is along the lines of [name of file]:[line number]: undefined local variable or method `[whatever]' for [the object it was called on][/i]. I'm not sure why ActiveRecord overrides that.
Back to "Sanity Checking for Scripting Languages"
Design Element

Copyright © Scott Stevenson 2004-2015