11 Dec
matte

matte il 11 December 2005 parla di Configurazioni

MySQL 4.1 e Rails 0.14.4 sotto Windows

Se aggiornando le gemme all’ultima versione (Rails 0.14.4 per intenderci) ottenete, conettendovi al database, il seguente errore:

    1 You have a nil object when you didn't expect it! You might
    2 have expected an instance of Array. The error occured
    3 while evaluating nil.[]

Dovete installare la gemma mysql. Il problema è riuscire a compilarla correttamente con Windows. Se non ci riuscite potete copiare nella cartella \path-to-ruby\lib\ruby\site_ruby\1.8\i386-msvcrt la libreria già compilata, scaricabile al seguente indirizzo:

http://dema.ruby.com.br/files/mysql.zip

Scrivi un commento