You have a nil object when you didn't expect it!

Im trying to get information from a database and display it on a
view, I
am using this in the controller:

The error should include a stack trace which should tell you on which
line it's happening (and this which object is (unexpectedly) nil.