another possible reason for this is indentation. So, make sure model and field sare in the same block.