<?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: The Ruby On Rails Paperclip Plugin Tutorial &#8211; Easy Image Attachments</title>
	<atom:link href="http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/feed/" rel="self" type="application/rss+xml" />
	<link>http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/</link>
	<description>John Burmeister's Blog</description>
	<lastBuildDate>Fri, 14 May 2010 17:16:28 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: KT</title>
		<link>http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/comment-page-1/#comment-33904</link>
		<dc:creator>KT</dc:creator>
		<pubDate>Wed, 10 Mar 2010 22:59:44 +0000</pubDate>
		<guid isPermaLink="false">http://burm.net/?p=127#comment-33904</guid>
		<description>What if the files aren&#039;t image files?  I see the attributes in the migration are all image-related... is this only for image files?</description>
		<content:encoded><![CDATA[<p>What if the files aren&#8217;t image files?  I see the attributes in the migration are all image-related&#8230; is this only for image files?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe McGlynn</title>
		<link>http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/comment-page-1/#comment-33426</link>
		<dc:creator>joe McGlynn</dc:creator>
		<pubDate>Sat, 13 Feb 2010 17:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://burm.net/?p=127#comment-33426</guid>
		<description>Not to nitpick, but this is image scaling, not cropping.  I&#039;m looking for an example of cropping (cut out a rectangular portion of an image).</description>
		<content:encoded><![CDATA[<p>Not to nitpick, but this is image scaling, not cropping.  I&#8217;m looking for an example of cropping (cut out a rectangular portion of an image).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Burmeister</title>
		<link>http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/comment-page-1/#comment-32402</link>
		<dc:creator>John Burmeister</dc:creator>
		<pubDate>Thu, 10 Dec 2009 00:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://burm.net/?p=127#comment-32402</guid>
		<description>I need to update this tutorial... Gems are the way to go.</description>
		<content:encoded><![CDATA[<p>I need to update this tutorial&#8230; Gems are the way to go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Cohen</title>
		<link>http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/comment-page-1/#comment-32299</link>
		<dc:creator>Aaron Cohen</dc:creator>
		<pubDate>Thu, 03 Dec 2009 00:19:45 +0000</pubDate>
		<guid isPermaLink="false">http://burm.net/?p=127#comment-32299</guid>
		<description>In some cases you&#039;d want to pass the :style of photo into the exists?() method since some transformed versions of the original photo might not have been produced during upload.

e.g.


  Small:

  Medium:</description>
		<content:encoded><![CDATA[<p>In some cases you&#8217;d want to pass the :style of photo into the exists?() method since some transformed versions of the original photo might not have been produced during upload.</p>
<p>e.g.</p>
<p>  Small:</p>
<p>  Medium:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: useful Paperclip tutorials &#171; Abhishek Singh</title>
		<link>http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/comment-page-1/#comment-32049</link>
		<dc:creator>useful Paperclip tutorials &#171; Abhishek Singh</dc:creator>
		<pubDate>Mon, 09 Nov 2009 12:43:43 +0000</pubDate>
		<guid isPermaLink="false">http://burm.net/?p=127#comment-32049</guid>
		<description>[...] 9. RoR Paperclip plugin tutorial. Here [...]</description>
		<content:encoded><![CDATA[<p>[...] 9. RoR Paperclip plugin tutorial. Here [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David G</title>
		<link>http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/comment-page-1/#comment-30648</link>
		<dc:creator>David G</dc:creator>
		<pubDate>Wed, 15 Jul 2009 21:23:39 +0000</pubDate>
		<guid isPermaLink="false">http://burm.net/?p=127#comment-30648</guid>
		<description>I also had trouble with the plugin. it left an empty &quot;paperclip&quot; folder in my plugins dir.

&quot;gem install paperclip&quot; did the trick</description>
		<content:encoded><![CDATA[<p>I also had trouble with the plugin. it left an empty &#8220;paperclip&#8221; folder in my plugins dir.</p>
<p>&#8220;gem install paperclip&#8221; did the trick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 31 Fascinating Ruby on Rails Tutorials &#38; Guides &#124; rapid-DEV.net</title>
		<link>http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/comment-page-1/#comment-29776</link>
		<dc:creator>31 Fascinating Ruby on Rails Tutorials &#38; Guides &#124; rapid-DEV.net</dc:creator>
		<pubDate>Sun, 14 Jun 2009 18:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://burm.net/?p=127#comment-29776</guid>
		<description>[...] to use Paperclip to swiftly attach images to an Event in [...]</description>
		<content:encoded><![CDATA[<p>[...] to use Paperclip to swiftly attach images to an Event in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/comment-page-1/#comment-18487</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 04 Mar 2009 15:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://burm.net/?p=127#comment-18487</guid>
		<description>I thought I was on FaceBook for a second....</description>
		<content:encoded><![CDATA[<p>I thought I was on FaceBook for a second&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/comment-page-1/#comment-10733</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Fri, 06 Feb 2009 18:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://burm.net/?p=127#comment-10733</guid>
		<description>sorry, there was a typo... it should be &lt;pre&gt;has_attached_file :photo&lt;/pre&gt; for this example.</description>
		<content:encoded><![CDATA[<p>sorry, there was a typo&#8230; it should be
<pre>has_attached_file :photo</pre>
<p> for this example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/comment-page-1/#comment-10732</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Fri, 06 Feb 2009 18:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://burm.net/?p=127#comment-10732</guid>
		<description>Instead of typing out all of that code for the migration you can use &lt;pre&gt;ruby script/generate paperclip event photo&lt;/pre&gt; then rake the DB as usual.

As for the model, you can add some extra spice by setting the path/urls for the storage (very useful if your using subdomain assets).  You can also set a default picture with the default_url which removes the &quot;missing&quot; text and replaces it with an image.

&lt;pre&gt;
has_attached_file :image, :styles =&gt; { :gallery =&gt; &quot;180x180&gt;&quot;, :thumbnail =&gt; &quot;100x100&gt;&quot;},
                    :url =&gt; &quot;/assets/events/:id/:style/:basename.:extension&quot;,
                    :path =&gt; &quot;:rails_root/public/assets/events/:id/:style/:basename.:extension&quot;,
:default_url =&gt; &quot;/assets/events/default.jpg&quot;
&lt;/pre&gt;
- Ryan</description>
		<content:encoded><![CDATA[<p>Instead of typing out all of that code for the migration you can use
<pre>ruby script/generate paperclip event photo</pre>
<p> then rake the DB as usual.</p>
<p>As for the model, you can add some extra spice by setting the path/urls for the storage (very useful if your using subdomain assets).  You can also set a default picture with the default_url which removes the &#8220;missing&#8221; text and replaces it with an image.</p>
<pre>
has_attached_file :image, :styles =&gt; { :gallery =&gt; "180x180&gt;", :thumbnail =&gt; "100x100&gt;"},
                    :url =&gt; "/assets/events/:id/:style/:basename.:extension",
                    :path =&gt; ":rails_root/public/assets/events/:id/:style/:basename.:extension",
:default_url =&gt; "/assets/events/default.jpg"
</pre>
<p>- Ryan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
