Hi, I’m trying to use partials to render some forms to create new
records and to edit existing ones.
But I’m getting the following error
Called id for nil, which would mistakenly be 4 – if you really wanted
the id of nil, use object_id
Obviously for the edit form I need to somehow pass the id to the form,
but why is the same error occurring when I try to create a new record?
Any advice in solving either problem would be appreciated. Thanks:)