Hi, I'm trying to create a poll object which has many answers. Each answer can have an image attached. How can I create a form that allows me to enter the question and add a variable number of answers (each with their attached image). I'd also preferably want to allow preview of the images uploaded.
My idea so far is to have a sub-form for each image that is auto uploaded to a preview handler for each question added.
My other approach was to create the question object in the session, and add answer objects to it, then save them all at the same time. I'm not quite sure how to achieve that in rails though. I'm using paperclip for uploading the images.
I'm a bit of a rails newbie, so any advice would be appreciated.