<?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"
	>
<channel>
	<title>Comments on: Paperclip: Attaching Files in Rails</title>
	<atom:link href="http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/</link>
	<description>Ruby on Rails, Javascript, CSS and Standards</description>
	<pubDate>Fri, 05 Sep 2008 21:39:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Hugues Brunelle</title>
		<link>http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/#comment-543</link>
		<dc:creator>Hugues Brunelle</dc:creator>
		<pubDate>Sat, 30 Aug 2008 12:32:48 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=5#comment-543</guid>
		<description>Good tutorial.Thanks.
My only concerns so far is about validations.
I get a NoMethodError when I use validates_attachment_content_type :photo, :content_type =&#62; 'image/jpeg' inside the user.rb model.
I'll have to work on that later but if someone can point me out some hints, that would be nice.</description>
		<content:encoded><![CDATA[<p>Good tutorial.Thanks.<br />
My only concerns so far is about validations.<br />
I get a NoMethodError when I use validates_attachment_content_type :photo, :content_type =&gt; &#8216;image/jpeg&#8217; inside the user.rb model.<br />
I&#8217;ll have to work on that later but if someone can point me out some hints, that would be nice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/#comment-542</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 29 Aug 2008 04:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=5#comment-542</guid>
		<description>resolved my own issue. 

edit controller remained unchanged from restful scaffolding, all I did was adjust the attributes of the form_for tag on my edit view:

where the form for on my new view was:

 posts_path, :html =&#62; { :multipart =&#62; true } do &#124;f&#124; %&#62; 

the form_for on my edit view became:

 post_path, :action =&#62; 'update', :html =&#62; { :multipart =&#62; true, :method =&#62; :put } do &#124;f&#124; %&#62;  

I confess this was part trial and error, but it works flawlessly, even with multiple attachments.</description>
		<content:encoded><![CDATA[<p>resolved my own issue. </p>
<p>edit controller remained unchanged from restful scaffolding, all I did was adjust the attributes of the form_for tag on my edit view:</p>
<p>where the form for on my new view was:</p>
<p> posts_path, :html =&gt; { :multipart =&gt; true } do |f| %&gt; </p>
<p>the form_for on my edit view became:</p>
<p> post_path, :action =&gt; &#8216;update&#8217;, :html =&gt; { :multipart =&gt; true, :method =&gt; :put } do |f| %&gt;  </p>
<p>I confess this was part trial and error, but it works flawlessly, even with multiple attachments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/#comment-541</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Fri, 29 Aug 2008 03:03:49 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=5#comment-541</guid>
		<description>I'd love it if someone could point me towards an edit/update controller action. Jon has said elsewhere that this will require a slightly modified or special action (ie not RESTful) to keep the file that's currently attached to the record (if you're not attaching a new one). As it stands, clicking 'update' in my edit view just spawns a new record, which is kind of unexpected.

Please help!</description>
		<content:encoded><![CDATA[<p>I&#8217;d love it if someone could point me towards an edit/update controller action. Jon has said elsewhere that this will require a slightly modified or special action (ie not RESTful) to keep the file that&#8217;s currently attached to the record (if you&#8217;re not attaching a new one). As it stands, clicking &#8216;update&#8217; in my edit view just spawns a new record, which is kind of unexpected.</p>
<p>Please help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: foo</title>
		<link>http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/#comment-539</link>
		<dc:creator>foo</dc:creator>
		<pubDate>Tue, 26 Aug 2008 03:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=5#comment-539</guid>
		<description>You say "For some reason, file attachment is annoying."
For some reason, testing file attachments is also annoying. 
Got some examples (preferable rspec) of both model and controller specs?</description>
		<content:encoded><![CDATA[<p>You say &#8220;For some reason, file attachment is annoying.&#8221;<br />
For some reason, testing file attachments is also annoying.<br />
Got some examples (preferable rspec) of both model and controller specs?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Federico</title>
		<link>http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/#comment-537</link>
		<dc:creator>Federico</dc:creator>
		<pubDate>Mon, 25 Aug 2008 05:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=5#comment-537</guid>
		<description>Hi,

I installed paperclip and its uploading the files correctly but is not generating the thumbnails. I read somewhere that they are not generated by default. What can i do so paperclip start generating the thumbnails?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I installed paperclip and its uploading the files correctly but is not generating the thumbnails. I read somewhere that they are not generated by default. What can i do so paperclip start generating the thumbnails?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rex</title>
		<link>http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/#comment-535</link>
		<dc:creator>Rex</dc:creator>
		<pubDate>Mon, 18 Aug 2008 12:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=5#comment-535</guid>
		<description>We've added some patch to paperclip for checking content type before trying to create a thumbnail. When the file is a pdf, imagemagick tries to make thumbnails of everypage, making it very slow. 

http://devblog.rorcraft.com/2008/8/1/patching-paperclip-to-only-thumbnail-images</description>
		<content:encoded><![CDATA[<p>We&#8217;ve added some patch to paperclip for checking content type before trying to create a thumbnail. When the file is a pdf, imagemagick tries to make thumbnails of everypage, making it very slow. </p>
<p><a href="http://devblog.rorcraft.com/2008/8/1/patching-paperclip-to-only-thumbnail-images" rel="nofollow">http://devblog.rorcraft.com/2008/8/1/patching-paperclip-to-only-thumbnail-images</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kasey</title>
		<link>http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/#comment-530</link>
		<dc:creator>kasey</dc:creator>
		<pubDate>Mon, 11 Aug 2008 20:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=5#comment-530</guid>
		<description>anyone know how to change the basename of a file before it gets stored? i want to append some unique identifiers onto the file so we dont get naming conflicts....</description>
		<content:encoded><![CDATA[<p>anyone know how to change the basename of a file before it gets stored? i want to append some unique identifiers onto the file so we dont get naming conflicts&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Problema de ImageMagick y passenger (mod_rails) &#124; carakan &#124; web 2.0 y otras cosas.</title>
		<link>http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/#comment-527</link>
		<dc:creator>Problema de ImageMagick y passenger (mod_rails) &#124; carakan &#124; web 2.0 y otras cosas.</dc:creator>
		<pubDate>Wed, 06 Aug 2008 18:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=5#comment-527</guid>
		<description>[...] en uno de mis proyectos estamos utilizando el plugin para subir archivos paperclip tutorial aca, este plugin tiene caracteristicas de redimencion de imagenes pero dentro de nuestro servidor web [...]</description>
		<content:encoded><![CDATA[<p>[...] en uno de mis proyectos estamos utilizando el plugin para subir archivos paperclip tutorial aca, este plugin tiene caracteristicas de redimencion de imagenes pero dentro de nuestro servidor web [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/#comment-524</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Wed, 30 Jul 2008 21:40:54 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=5#comment-524</guid>
		<description>Is it possible to not store the original file?

How would you go about it?</description>
		<content:encoded><![CDATA[<p>Is it possible to not store the original file?</p>
<p>How would you go about it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Powell</title>
		<link>http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/#comment-523</link>
		<dc:creator>Glenn Powell</dc:creator>
		<pubDate>Wed, 30 Jul 2008 09:16:34 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=5#comment-523</guid>
		<description>I use this plugin and it is wonderful.  Make sure you stay up to date with the versions in GIT though.  There were quite a few important updates yesterday.

One question for anyone who may know of a smart solution.  I've looked through the docs and code, but can't find any way to define a Max file size to ensure a user doesn't upload a 3000x3000 BMP which would then get stored in the /original subdirectory.  Can you simply supply the :styles option with an :original field?  hm, maybe I'll try that.  Anyways, great plugin.</description>
		<content:encoded><![CDATA[<p>I use this plugin and it is wonderful.  Make sure you stay up to date with the versions in GIT though.  There were quite a few important updates yesterday.</p>
<p>One question for anyone who may know of a smart solution.  I&#8217;ve looked through the docs and code, but can&#8217;t find any way to define a Max file size to ensure a user doesn&#8217;t upload a 3000&#215;3000 BMP which would then get stored in the /original subdirectory.  Can you simply supply the :styles option with an :original field?  hm, maybe I&#8217;ll try that.  Anyways, great plugin.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
