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

I get the following error when I try to create a new item (create action
for a controller).

You have a nil object when you didn’t expect it!
The error occurred while evaluating nil.<=

Jonas wrote:

I get the following error when I try to create a new item (create action
for a controller).

You have a nil object when you didn’t expect it!
The error occurred while evaluating nil.<=

Probably you attempt to use a nil (undefined) parameter.

Some rows of code could help us.