1

does anyone know if it is possible to do a double nested form for. so that i could upload images to a set from an article form.

e.g.

Article
  has_many :image_sets

ImageSet
  belongs_to :article
  has_many :images

Image
  belongs_to :image_set

1 Answer 1

1

Check out Railscasts #196, looks like he sets up two levels of nested attributes, maybe you can do something similar to that.

Sign up to request clarification or add additional context in comments.

1 Comment

perfect! don't know how i missed that. the nesting in rails is really smart :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.