I have an Active Admin model, :gallery, and it has a nested paperclip resource, :images. :gallery has_many :images.
:gallery has a field, :title, which is required.
When I submit without a title, the other fields persist (:description, :location) but the nested resource becomes blank.
Is there a way to build the resource before validating so it persists after a failed validation check?
f.inputs "Images" do
f.has_many :images do |i|
i.input :image,
:as=>:file,
:multipart => true,
:label => "Image"
end
end