Called id for nil, which would mistakenly be 4 -- if you really wanted the id of nil, use object_id
That has nothing to do with partials. (Maybe with the specific way you use them) It just tells you, that and object that should have a value is nil. Maybe you forgot to hand in that with the :object argument in the render :partial call.
Please post your code and tell us in which line the error happened