heisst das model in der mehrzahl? legacy dbs sind doof :) Am 23.08.07 schrieb Stephan Beck <[EMAIL PROTECTED]>: > > Tom wrote: > > > Folgender Code: > > > @anmeldung = TAddressitems.find(:first, > > > :conditions => ["addressitemid=? AND lastname=? AND > > > firstname= ?", > > > params[:addressitemid].to_i, params > > > [:lastname], params[:firstname]]) > > > > > > Also ich kürz solche Fehlerquellen immer soweit wie möglich/nötig. > > > > In diesem Fall also erstmal die conditions komplett raus, falls es > > das schon war dann wieder rein damit und die params durch fixe Werte > > ersetzen. > > @anmeldung = TAddressitems.find(:first) > > liefert die gleiche Fehlermeldung "wrong number of arguments (1 for 0)" > > @anmeldung = TAddressitems.find() --> "Couldn't find TAddressitems without > an ID" > > LG, > > Stephan > _______________________________________________ > rubyonrails-ug mailing list > [email protected] > http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug >
-- Siebert Webdesign Michael Siebert Trappenweg 6, 15749 Mittenwalde, Deutschland
_______________________________________________ rubyonrails-ug mailing list [email protected] http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug
