You’ll need to paste your view code and get a little more detail on what
I’ll point out a couple things though …
On Mon, Apr 7, 2008 at 9:18 AM, rashantha [email protected] wrote:
i thought this was possible but it is not working for me.
@items = Items.find(:all)
Model name’s are typically in the singular form … this would look
@items = Item.find :all
in the view via a loop the goes thru all the rows.
this The error occurred while evaluating nil.name
It sounds as if you’re getting :all of the items, but one of them has a
missing foreign key association in the database.
if i pass @one_item = Items.find(402)
then it works.
how do i set up this loop so that this would work?
“Programming today is a race between software engineers striving to
bigger and better idiot-proof programs, and the Universe trying to
bigger and better idiots. So far, the Universe is winning.”