user138095
user138095

Reputation:

double accepts_nested_attributes_for

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

Upvotes: 1

Views: 3779

Answers (1)

Corey
Corey

Reputation: 2243

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

Upvotes: 1

Related Questions