<?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: Paperclip and Amazon S3</title>
	<atom:link href="http://www.claytonlz.com/index.php/2008/06/paperclip-and-amazon-s3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.claytonlz.com/index.php/2008/06/paperclip-and-amazon-s3/</link>
	<description>Ruby on Rails Developer</description>
	<lastBuildDate>Fri, 09 Jul 2010 17:29:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Eric</title>
		<link>http://www.claytonlz.com/index.php/2008/06/paperclip-and-amazon-s3/comment-page-1/#comment-702</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Tue, 20 Oct 2009 20:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=41#comment-702</guid>
		<description>Awesome, I&#039;ve been meaning to push off my picture storage to S3 on one of my apps for a while, I&#039;m about to finally take the plunge thanks to this. Thanks!</description>
		<content:encoded><![CDATA[<p>Awesome, I&#8217;ve been meaning to push off my picture storage to S3 on one of my apps for a while, I&#8217;m about to finally take the plunge thanks to this. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie Maffitt</title>
		<link>http://www.claytonlz.com/index.php/2008/06/paperclip-and-amazon-s3/comment-page-1/#comment-660</link>
		<dc:creator>Charlie Maffitt</dc:creator>
		<pubDate>Tue, 16 Jun 2009 16:24:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=41#comment-660</guid>
		<description>Thanks - I used this post to set up paperclip with s3, and it works, but I do get some application errors if I call @model.attachment.exists? in the code.

The error goes something like &quot;Key can not be blank.&quot;

A workaround is to check to see if @model.attachment_file_name.blank? instead, since it won&#039;t have a file name if the attachment doesn&#039;t exist, but I was wondering if anyone else has had this same problem with referring directly to the attachment, and if so how did you fix it?</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; I used this post to set up paperclip with s3, and it works, but I do get some application errors if I call @model.attachment.exists? in the code.</p>
<p>The error goes something like &#8220;Key can not be blank.&#8221;</p>
<p>A workaround is to check to see if @model.attachment_file_name.blank? instead, since it won&#8217;t have a file name if the attachment doesn&#8217;t exist, but I was wondering if anyone else has had this same problem with referring directly to the attachment, and if so how did you fix it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clayton</title>
		<link>http://www.claytonlz.com/index.php/2008/06/paperclip-and-amazon-s3/comment-page-1/#comment-650</link>
		<dc:creator>Clayton</dc:creator>
		<pubDate>Sat, 06 Jun 2009 04:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=41#comment-650</guid>
		<description>I should really do an updated one of these since it&#039;s so old, but thanks!</description>
		<content:encoded><![CDATA[<p>I should really do an updated one of these since it&#8217;s so old, but thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gordon</title>
		<link>http://www.claytonlz.com/index.php/2008/06/paperclip-and-amazon-s3/comment-page-1/#comment-649</link>
		<dc:creator>Gordon</dc:creator>
		<pubDate>Sat, 06 Jun 2009 03:57:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=41#comment-649</guid>
		<description>Great S3 and Paperclip walkthrough, thanks for the post!</description>
		<content:encoded><![CDATA[<p>Great S3 and Paperclip walkthrough, thanks for the post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travis Roberts</title>
		<link>http://www.claytonlz.com/index.php/2008/06/paperclip-and-amazon-s3/comment-page-1/#comment-645</link>
		<dc:creator>Travis Roberts</dc:creator>
		<pubDate>Wed, 27 May 2009 19:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=41#comment-645</guid>
		<description>The newest version of paperclip now has the default filesystem storage path as &quot;:rails_root/public/system/:attachment/:id/:style/:filename&quot;. This solves the problem that you had because, if you use Capistrano, the &quot;system&quot; folder is already symlinked from your &quot;public&quot; folder.

Thanks for the S3 help, though! Just what I was looking for.</description>
		<content:encoded><![CDATA[<p>The newest version of paperclip now has the default filesystem storage path as &#8220;:rails_root/public/system/:attachment/:id/:style/:filename&#8221;. This solves the problem that you had because, if you use Capistrano, the &#8220;system&#8221; folder is already symlinked from your &#8220;public&#8221; folder.</p>
<p>Thanks for the S3 help, though! Just what I was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy Baker</title>
		<link>http://www.claytonlz.com/index.php/2008/06/paperclip-and-amazon-s3/comment-page-1/#comment-435</link>
		<dc:creator>Jimmy Baker</dc:creator>
		<pubDate>Sat, 21 Feb 2009 16:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.claytonlz.com/?p=41#comment-435</guid>
		<description>Another option for you would have been to symlink the folder where you want to store your images. In most cases and files that need to persist across deploys will go in the &quot;shared&quot; folder inside your deploy path.

This little capistrano recipe does just that:
&lt;pre lang=&quot;ruby&quot; line=&quot;1&quot;&gt;
task :after_symlink do
  run &quot;ln -nfs #{shared_path}/images/products #{release_path}/public/images/&quot;
end
&lt;/pre&gt;

This post answered my questions about the s3 storage option. Thanks a bunch!</description>
		<content:encoded><![CDATA[<p>Another option for you would have been to symlink the folder where you want to store your images. In most cases and files that need to persist across deploys will go in the &#8220;shared&#8221; folder inside your deploy path.</p>
<p>This little capistrano recipe does just that:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">task <span style="color:#ff3333; font-weight:bold;">:after_symlink</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  run <span style="color:#996600;">&quot;ln -nfs #{shared_path}/images/products #{release_path}/public/images/&quot;</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>This post answered my questions about the s3 storage option. Thanks a bunch!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
