<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Getting attachment_fu to play nice with acts_as_versioned</title>
	<atom:link href="http://unixmonkey.net/?feed=rss2&#038;p=18" rel="self" type="application/rss+xml" />
	<link>http://unixmonkey.net/?p=18</link>
	<description>creative engineering and technological abuse</description>
	<lastBuildDate>Thu, 05 Aug 2010 19:47:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: oz</title>
		<link>http://unixmonkey.net/?p=18&#038;cpage=1#comment-15394</link>
		<dc:creator>oz</dc:creator>
		<pubDate>Fri, 24 Apr 2009 03:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://unixmonkey.net/?p=18#comment-15394</guid>
		<description>this article was great ! 

but i have some question about delete the file 


in article  when user delete file  ALL version will be delete 

for example 

if i have filename a.txt  with version 1,2,3,4,5 

when i delete version 5  , version 1,2,3,4 will also delete

so could anyone have solution to delete ONLY SELECTED version

like i choose to delete version 5 

it will delete only version 5 not include 1,2,3,4


thanks</description>
		<content:encoded><![CDATA[<p>this article was great ! </p>
<p>but i have some question about delete the file </p>
<p>in article  when user delete file  ALL version will be delete </p>
<p>for example </p>
<p>if i have filename a.txt  with version 1,2,3,4,5 </p>
<p>when i delete version 5  , version 1,2,3,4 will also delete</p>
<p>so could anyone have solution to delete ONLY SELECTED version</p>
<p>like i choose to delete version 5 </p>
<p>it will delete only version 5 not include 1,2,3,4</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah Gray</title>
		<link>http://unixmonkey.net/?p=18&#038;cpage=1#comment-9601</link>
		<dc:creator>Sarah Gray</dc:creator>
		<pubDate>Thu, 13 Nov 2008 05:50:12 +0000</pubDate>
		<guid isPermaLink="false">http://unixmonkey.net/?p=18#comment-9601</guid>
		<description>Hey David, this is great, thanks for writing it up.  

@sandy, yes this works with S3.  I have it working there. It will even version your thumbnails for you.  Just be sure to have config/amazon_s3.yml set up correctly and change your storage call to :storage =&gt; :s3. 

Mine is like this: 
&lt;pre lang=&quot;ruby&quot;&gt;
has_attachment  :storage=&gt;:s3,
                  :path_prefix=&gt;&quot;projects/&quot;,
                  :thumbnails =&gt; { :thumb =&gt; &#039;100x100&gt;&#039; }
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hey David, this is great, thanks for writing it up.  </p>
<p>@sandy, yes this works with S3.  I have it working there. It will even version your thumbnails for you.  Just be sure to have config/amazon_s3.yml set up correctly and change your storage call to :storage =&gt; :s3. </p>
<p>Mine is like this:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby">has_attachment  <span style="color:#ff3333; font-weight:bold;">:storage</span>=&amp;gt;:s3,
                  <span style="color:#ff3333; font-weight:bold;">:path_prefix</span>=&amp;gt;<span style="color:#996600;">&quot;projects/&quot;</span>,
                  <span style="color:#ff3333; font-weight:bold;">:thumbnails</span> =&amp;gt; <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#ff3333; font-weight:bold;">:thumb</span> =&amp;gt; <span style="color:#996600;">'100x100&amp;gt;'</span> <span style="color:#006600; font-weight:bold;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Mowforth</title>
		<link>http://unixmonkey.net/?p=18&#038;cpage=1#comment-7759</link>
		<dc:creator>Chris Mowforth</dc:creator>
		<pubDate>Wed, 17 Sep 2008 16:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://unixmonkey.net/?p=18#comment-7759</guid>
		<description>The bundled example works fine for me, but breaks when I put it into an existing app running 2.1.1.

Everything works apart from the file updates (calling public_filename returns the correct path, but the corresponding file doesn&#039;t get created). Working on a solution right now...</description>
		<content:encoded><![CDATA[<p>The bundled example works fine for me, but breaks when I put it into an existing app running 2.1.1.</p>
<p>Everything works apart from the file updates (calling public_filename returns the correct path, but the corresponding file doesn&#8217;t get created). Working on a solution right now&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandy</title>
		<link>http://unixmonkey.net/?p=18&#038;cpage=1#comment-4450</link>
		<dc:creator>Sandy</dc:creator>
		<pubDate>Sun, 08 Jun 2008 12:37:30 +0000</pubDate>
		<guid isPermaLink="false">http://unixmonkey.net/?p=18#comment-4450</guid>
		<description>Hi, looks great.  I will be sure to implement this soon.  Do you think it would be possible using the S3 feature of attachment_fu.  Also, i&#039;ve heard that acts_as_revisionable is a more effective and flexible framework.  What are your thoughts?

Cheers</description>
		<content:encoded><![CDATA[<p>Hi, looks great.  I will be sure to implement this soon.  Do you think it would be possible using the S3 feature of attachment_fu.  Also, i&#8217;ve heard that acts_as_revisionable is a more effective and flexible framework.  What are your thoughts?</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unixmonkey</title>
		<link>http://unixmonkey.net/?p=18&#038;cpage=1#comment-3524</link>
		<dc:creator>Unixmonkey</dc:creator>
		<pubDate>Tue, 20 May 2008 22:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://unixmonkey.net/?p=18#comment-3524</guid>
		<description>A helpful addenda to this article is that if you are calling the same view to view both the document and the document_version, would be in your model to do this:

&lt;pre lang=&quot;ruby&quot;&gt;
def document_id
  id
end
&lt;/pre&gt;


then in your view you can always call 
&lt;pre lang=&quot;ruby&quot;&gt;
image_tag(&quot;/documents/#{@document_id}/v#{version.version/&quot; + version.filename)
&lt;/pre&gt;

and never call @document.id, because your document_versions table will have a different value for id.</description>
		<content:encoded><![CDATA[<p>A helpful addenda to this article is that if you are calling the same view to view both the document and the document_version, would be in your model to do this:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby"><span style="color:#9966CC; font-weight:bold;">def</span> document_id
  id
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>then in your view you can always call</p>

<div class="wp_syntax"><div class="code"><pre class="ruby">image_tag<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;/documents/#{@document_id}/v#{version.version/&quot;</span> + version.<span style="color:#9900CC;">filename</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

<p>and never call @document.id, because your document_versions table will have a different value for id.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Gins</title>
		<link>http://unixmonkey.net/?p=18&#038;cpage=1#comment-3491</link>
		<dc:creator>Nick Gins</dc:creator>
		<pubDate>Tue, 20 May 2008 02:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://unixmonkey.net/?p=18#comment-3491</guid>
		<description>This worked like a charm!  Thanks an incredible amount for this tutorial!

-Nick</description>
		<content:encoded><![CDATA[<p>This worked like a charm!  Thanks an incredible amount for this tutorial!</p>
<p>-Nick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alanmaciel.com &#187; Blog Archive &#187; Getting attachment_fu to play nice with acts_as_versioned 1</title>
		<link>http://unixmonkey.net/?p=18&#038;cpage=1#comment-3483</link>
		<dc:creator>alanmaciel.com &#187; Blog Archive &#187; Getting attachment_fu to play nice with acts_as_versioned 1</dc:creator>
		<pubDate>Mon, 19 May 2008 23:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://unixmonkey.net/?p=18#comment-3483</guid>
		<description>[...] original info from: http://unixmonkey.net/?p=18#comment-3461 [...]</description>
		<content:encoded><![CDATA[<p>[...] original info from: <a href="http://unixmonkey.net/?p=18#comment-3461" rel="nofollow">http://unixmonkey.net/?p=18#comment-3461</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Maciel</title>
		<link>http://unixmonkey.net/?p=18&#038;cpage=1#comment-3461</link>
		<dc:creator>Alan Maciel</dc:creator>
		<pubDate>Mon, 19 May 2008 18:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://unixmonkey.net/?p=18#comment-3461</guid>
		<description>I am doing this using acts_as_attachment, I will post any results here.. but if you know what i have to be aware of... I really will appreciate if you let me know.

Regards</description>
		<content:encoded><![CDATA[<p>I am doing this using acts_as_attachment, I will post any results here.. but if you know what i have to be aware of&#8230; I really will appreciate if you let me know.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
</channel>
</rss>
