id
, created_at
, and updated_at
are going to be nil
for un-persisted objects, which is what you have by just calling .new
and not saving the object yet.
Those attributes will be sent as soon as you call .save
(assuming there are no validation errors).
Actually that isn't 100% true. updated_at
will not be set on the first create / save, but it will be set on subsequent saves.