I have asked a similar question here with unsuccessful answers: Uploadify + Paperclip + Rails nested association before_save
So i will reformulate my question:
What's the best approach in Rails to upload multiple files at once and associate them to an object that is not yet saved? (for example a model (girl) application form that is saved to the database when the create action is been complete (the save button is pressed).
Many ideas come to my mind (save the object by ajax before he try to upload the images, add a token to images and then add the ID of the model after the model object is saved) but im pretty sure many people have done this and there's a common way or best approach to do it.
Thank you in advance! Martin.