In your model, if you have
accepts_nested_attributes_for :attachments
And you limit the accessible attributes with something like
attr_accessible :title, :text
make sure to also include the virtual attribute for the nested model to that list, like so:
attr_accessible :title, :text, :attachments_attributes
Otherwise, your model won't accept the nested attributes.