[ruby-it] Destroy di un record

Lorenzo Caniato azarot87 a hotmail.it
Lun 14 Dic 2009 19:13:19 CET


Chiedo scusa, infatti ho sbagliato a scrivere, in realtà avevo fatto:

Download.find(:first, :conditions => ["album_id = ?",
params[:id]]).destroy

E anche così non funzionava...comunque ho risolto il problema 
semplicemente con la
:dependent => :destroy, non so come ma alla fine è andato tutto a 
posto!! Grazie mille
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ml mailing list