-
Website
http://blog.peteonrails.com -
Original page
http://blog.peteonrails.com/articles/2008/04/30/adding-multiple-attachements-to-a-model-in-one-view/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Adam Wride
1 comment · 10 points
-
Nathan Weizenbaum
1 comment · 1 points
-
book cover designer
1 comment · 1 points
-
Spiele
1 comment · 1 points
-
rsturim
1 comment · 1 points
-
-
Popular Threads
Thank you!,
John
...as a result not being able to use the fields_for block?...thereby not being able to use one field to work with two models?
...as a result not being able to use the fields_for block?...thereby not being able to use one FORM to work with two models?
<%= add_attachment_link "Add a File" %>
You can instead have it post the form and return to the edit view with another empty file_field box.
It should still work with af.file_field.
Do you have an example of code that isn't working? If so, point me to it and I'll take a look.