<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Pete On Rails - Latest Comments in Adding Multiple Attachements to a Model in one View</title><link>http://peteonrails.disqus.com/</link><description></description><language>en</language><lastBuildDate>Mon, 22 Sep 2008 12:34:51 -0000</lastBuildDate><item><title>Re: Adding Multiple Attachements to a Model in one View</title><link>http://blog.peteonrails.com/articles/2008/04/30/adding-multiple-attachements-to-a-model-in-one-view/#comment-2521569</link><description>No, it'll work without javascript if you expect that in your application. Instead of having this line of code produce a javascript enabled link that dynamically inserts a new file_field box: &lt;br&gt;&lt;br&gt;&amp;lt;%= add_attachment_link "Add a File" %&amp;gt;&lt;br&gt;&lt;br&gt;You can instead have it post the form and return to the edit view with another empty file_field box. &lt;br&gt;&lt;br&gt;It should still work with af.file_field. &lt;br&gt;&lt;br&gt;Do you have an example of code that isn't working? If so, point me to it and I'll take a look.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">peteonrails</dc:creator><pubDate>Mon, 22 Sep 2008 12:34:51 -0000</pubDate></item><item><title>Re: Adding Multiple Attachements to a Model in one View</title><link>http://blog.peteonrails.com/articles/2008/04/30/adding-multiple-attachements-to-a-model-in-one-view/#comment-2447702</link><description>...edit from last post...&lt;br&gt;&lt;br&gt;...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?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Fri, 19 Sep 2008 17:50:45 -0000</pubDate></item><item><title>Re: Adding Multiple Attachements to a Model in one View</title><link>http://blog.peteonrails.com/articles/2008/04/30/adding-multiple-attachements-to-a-model-in-one-view/#comment-2447696</link><description>...continued to from last post...&lt;br&gt;&lt;br&gt;...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?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Fri, 19 Sep 2008 17:49:58 -0000</pubDate></item><item><title>Re: Adding Multiple Attachements to a Model in one View</title><link>http://blog.peteonrails.com/articles/2008/04/30/adding-multiple-attachements-to-a-model-in-one-view/#comment-2447679</link><description>Does the fields_for block work in this instance with af.file_field because you used javascript to create multiple upload fields?  Without javascript, would you be stuck using file_field_tag to upload multiple files using attachment fu, and as a result not being able to use the fields_for block?&lt;br&gt;&lt;br&gt;Thank you!,&lt;br&gt;John</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John</dc:creator><pubDate>Fri, 19 Sep 2008 17:48:02 -0000</pubDate></item></channel></rss>