Ruby On Rails 3 - Getting nil exception, and doesn't understand why?

Thanks for your replies, I continued investigating and experimented with the controllers, and just tried with. @category.products. All and it worked.

The sad thing is that I don't know why it did... Especially when it works for me in the console... But I guess I'm happy to have solved the problem in one way so to speak...

In this case it looks like your problem is caused by some strange (maybe inconsistent) data. Try to see (in your console) the object which caused the problem - in your controller you have used some specific ID. Check whether Category.

Find(THIS_IS).products. To_xml trows the error too.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions