<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" 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><atom:link href="https://peteonrails.disqus.com/adding_multiple_attachements_to_a_model_in_one_view_50/latest.rss" rel="self"></atom:link><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>&lt;p&gt;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;/p&gt;&lt;p&gt;&amp;lt;%= add_attachment_link "Add a File" %&amp;gt;&lt;/p&gt;&lt;p&gt;You can instead have it post the form and return to the edit view with another empty file_field box.&lt;/p&gt;&lt;p&gt;It should still work with af.file_field.&lt;/p&gt;&lt;p&gt;Do you have an example of code that isn't working? If so, point me to it and I'll take a look. &lt;/p&gt;</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>&lt;p&gt;...edit from last post...&lt;/p&gt;&lt;p&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?&lt;/p&gt;</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>&lt;p&gt;...continued to from last post...&lt;/p&gt;&lt;p&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?&lt;/p&gt;</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>&lt;p&gt;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;/p&gt;&lt;p&gt;Thank you!,&lt;br&gt;John&lt;/p&gt;</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>