gregbell/active_admin — Issue #608: X has_many/has_and_belongs_to_many Y, want to create a new Y from the form for X
Author: bdastous
Created: 2011-10-12 18:46:51+00:00
State: open

I have a Gallery model and an Images model, where a Gallery has_and_belongs_to_many Images.

Right now, new images are uploaded via the images form, and a gallery's images are selected from the gallery form using checkboxes. I'd like to keep the existing checkbox selection method for existing images, but also be able to upload new images from within the gallery form (and simultaneously create the association between the new image and the gallery).

I'm still learning Rails and I'm totally new to ActiveAdmin, so I may be missing something obvious here. I'm happy to provide more context if that would be helpful.

Thank you for any assistance you can provide!