I am a newbie to rails so forgive me if this has been
answered before. I am currently doing an inventory management project
on RoR and got 3 tables , goods , customers and staff. I used scaffold
to generate all of them.
I just generated a new scaffold called search and I
need to search values from all 3 tables. i am using the steps from
this site ,
the codes for view are in view/search/index.rhtml and search.rhtml.
Thank you so much!!
regards
billy
Hi Billy,
Can you check for typos? As the message suggests, it seems that one of the arrays you are evaluating in the view does not actually have any data in it. Perhaps, you have a typo like @book instead of @books or something in your view.. would be worth checking, in my opinion.
Does Rails show you the code where the error occurs? Could you post that?