From: "Paul D. Kraus" Date: 2006-05-27T15:17:30+09:00 Subject: Re: Rails - Hashes ------=_Part_22885_33506399.1148710647703 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > > What does view|source on the resulting Web page show you? > > I'm betting key is an object with no useful default to_s. > Good Call ..
  • # -> 1
  • Ok so why is the key getting set to this. @invoice =3D Invoice.find(params[:id]) @payment.add_invoice(@invoice) are the lines that get the "key" params[:id] is just the id number from a row in result set. Or more accuratly its just this from the url... http://xxx.xxx.xxx.xxx:3000/selection/add_invoice/4 This is my very first attempt at rails and ruby is pretty new to me as well= . but shouldn't params[:id] =3D '4' Paul ------=_Part_22885_33506399.1148710647703--