<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.thewebfellas.com/~d/styles/atom10full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.thewebfellas.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" xml:lang="en-US">
  <title>TheWebFellas - Ruby on Rails Development Specialists UK - Blog Comments</title>
  <id>tag:thewebfellas.com,2008:mephisto/blog/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  
  <link href="http://thewebfellas.com/blog" rel="alternate" type="text/html" />
  <updated>2008-12-03T22:31:27Z</updated>
  <geo:lat>50.848928</geo:lat><geo:long>-1.165624</geo:long><link rel="self" href="http://feeds.thewebfellas.com/thewebfellas/blog/comments" type="application/atom+xml" /><entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Rails LearnHub</name>
    </author>
    <id>tag:thewebfellas.com,2008-11-18:2390:2443</id>
    <published>2008-12-03T22:31:27Z</published>
    <updated>2008-12-03T22:31:27Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/465014729/amazon-launches-their-cdn-cloudfront" rel="alternate" type="text/html" />
    <title>Comment on 'Amazon launches their CDN - CloudFront' by Rails LearnHub</title>
<content type="html">&lt;p&gt;Chris, did you modify Paperclip to work with CloudFront?&lt;/p&gt;

&lt;p&gt;We are just about to.&lt;/p&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/465014729" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/11/18/amazon-launches-their-cdn-cloudfront</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>zaj</name>
    </author>
    <id>tag:thewebfellas.com,2007-12-10:46:2436</id>
    <published>2008-12-02T19:19:49Z</published>
    <updated>2008-12-02T19:19:49Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/474313092/rspec-autotest-and-snarl-on-windows" rel="alternate" type="text/html" />
    <title>Comment on 'RSpec, autotest and Snarl on Windows' by zaj</title>
<content type="html">&lt;p&gt;I've followed the instructions here on 2 projects now and always run into a problem... when I run autotest from my app's root directory, I get a line that says:&lt;/p&gt;

&lt;p&gt;"loading autotest/rails"&lt;/p&gt;

&lt;p&gt;and it just hangs there.&lt;/p&gt;

&lt;p&gt;I'm on Vista and running rails 1.2.6.&lt;/p&gt;

&lt;p&gt;Any ideas?&lt;/p&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/474313092" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2007/12/10/rspec-autotest-and-snarl-on-windows</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>wiktor</name>
    </author>
    <id>tag:thewebfellas.com,2008-11-18:2390:2417</id>
    <published>2008-11-24T16:11:51Z</published>
    <updated>2008-11-24T16:11:51Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/465014729/amazon-launches-their-cdn-cloudfront" rel="alternate" type="text/html" />
    <title>Comment on 'Amazon launches their CDN - CloudFront' by wiktor</title>
<content type="html">&lt;p&gt;The best way to understand Amazon CloudFront is to work through the Getting Started Guide.&lt;/p&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/465014729" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/11/18/amazon-launches-their-cdn-cloudfront</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Rob Anderton</name>
    </author>
    <id>tag:thewebfellas.com,2008-11-02:2250:2415</id>
    <published>2008-11-22T18:30:55Z</published>
    <updated>2008-11-22T18:30:55Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/444158252/goodbye-attachment_fu-hello-paperclip" rel="alternate" type="text/html" />
    <title>Comment on 'Goodbye attachment_fu, hello Paperclip' by Rob Anderton</title>
<content type="html">&lt;p&gt;To follow up on my earlier comment to Peter, there are two gotchas to be aware of if you have a model named &lt;code&gt;Attachment&lt;/code&gt; and want to use it in a &lt;code&gt;has_many&lt;/code&gt; association.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;p&gt;You must explicitly define the attachment class name when defining the association, otherwise you'll get an error like &lt;samp&gt;NoMethodError: undefined method `quoted_table_name' for Paperclip::Attachment:Class&lt;/samp&gt; when you try and access the association. For example:&lt;/p&gt;
    &lt;pre&gt;&lt;code class="ruby"&gt;has_many :attachments, :class_name =&gt; '::Attachment'&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
  &lt;li&gt;&lt;p&gt;The current version of Paperclip creates a naming conflict with an association named &lt;code&gt;attachments&lt;/code&gt;. I've &lt;a href="http://thoughtbot.lighthouseapp.com/projects/8794/tickets/43-has_many-attachments-paperclip-causes-undefined-method-insert_record-error#ticket-43-2" title="See the patch"&gt;posted a patch&lt;/a&gt; but in the meantime you can monkey patch your model with something like this:&lt;/p&gt;
    &lt;pre&gt;&lt;code class="ruby"&gt;def attachment_for name
  @_paperclip_attachments ||= {}
  @_paperclip_attachments[name] ||= Attachment.new(name, self, self.class.attachment_definitions[name])
end&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/444158252" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-hello-paperclip</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Rob Anderton</name>
    </author>
    <id>tag:thewebfellas.com,2008-11-02:2250:2412</id>
    <published>2008-11-22T11:44:30Z</published>
    <updated>2008-11-22T11:44:30Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/444158252/goodbye-attachment_fu-hello-paperclip" rel="alternate" type="text/html" />
    <title>Comment on 'Goodbye attachment_fu, hello Paperclip' by Rob Anderton</title>
<content type="html">&lt;p&gt;I’ve just posted a &lt;a href="http://thoughtbot.lighthouseapp.com/projects/8794/tickets/58-broken-tests-and-reprocess-bug-on-windows" title="See the patch"&gt;patch&lt;/a&gt; for Paperclip to fix a few problems with failing tests and corrupted attachments after using &lt;code&gt;reprocess!&lt;/code&gt; on our beloved Windows systems. I decided against including the Tempfile patch and have updated this blog to note that I no longer think this is needed.&lt;/p&gt;

&lt;p&gt;@Jim: thanks for the original tutorial and for your recent &lt;a href="http://jimneath.org/2008/11/15/speeding-up-rails-development/" title="Read Jims blog"&gt;advice&lt;/a&gt; - yeh I will get a mac :D&lt;/p&gt;

&lt;p&gt;@Peter: don’t forget there’s nothing stopping you having a special model for your attachments just like attachment_fu, then you can &lt;code&gt;has_many :attachments&lt;/code&gt; in the parent model just like the good old days!&lt;/p&gt;

&lt;p&gt;@Roob: good thing to remember - my image content type list currently looks like this:&lt;/p&gt;

&lt;pre&gt;&lt;code class="ruby"&gt;[ 'image/gif', 'image/png', 'image/x-png', 'image/jpeg', 'image/pjpeg', 'image/jpg' ]&lt;/code&gt;&lt;/pre&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/444158252" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-hello-paperclip</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Roob</name>
    </author>
    <id>tag:thewebfellas.com,2008-11-02:2250:2400</id>
    <published>2008-11-20T15:39:28Z</published>
    <updated>2008-11-20T15:39:28Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/444158252/goodbye-attachment_fu-hello-paperclip" rel="alternate" type="text/html" />
    <title>Comment on 'Goodbye attachment_fu, hello Paperclip' by Roob</title>
<content type="html">&lt;p&gt;Great in-depth tutorial! Remember to allow the content type 'image/pjpeg', otherwise that godforsaken Internet Explorer fails.&lt;/p&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/444158252" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-hello-paperclip</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Peter Yanovich</name>
    </author>
    <id>tag:thewebfellas.com,2008-11-02:2250:2383</id>
    <published>2008-11-17T14:09:45Z</published>
    <updated>2008-11-17T14:09:45Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/444158252/goodbye-attachment_fu-hello-paperclip" rel="alternate" type="text/html" />
    <title>Comment on 'Goodbye attachment_fu, hello Paperclip' by Peter Yanovich</title>
<content type="html">&lt;p&gt;Sometimes using attachment_fu is really better. When we want to attach many files or we want to moderate big amount of files - attachment_fu is only way.&lt;/p&gt;

&lt;p&gt;Really good and usefull article, man.
Thank you!&lt;/p&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/444158252" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-hello-paperclip</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>wictor</name>
    </author>
    <id>tag:thewebfellas.com,2008-11-02:2250:2333</id>
    <published>2008-11-12T17:07:30Z</published>
    <updated>2008-11-12T17:07:30Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/444158252/goodbye-attachment_fu-hello-paperclip" rel="alternate" type="text/html" />
    <title>Comment on 'Goodbye attachment_fu, hello Paperclip' by wictor</title>
<content type="html">&lt;p&gt;Thank you for your resources. They were very helpful.&lt;/p&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/444158252" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-hello-paperclip</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Jim Neath</name>
    </author>
    <id>tag:thewebfellas.com,2008-11-02:2250:2327</id>
    <published>2008-11-11T15:10:17Z</published>
    <updated>2008-11-11T15:10:17Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/444158252/goodbye-attachment_fu-hello-paperclip" rel="alternate" type="text/html" />
    <title>Comment on 'Goodbye attachment_fu, hello Paperclip' by Jim Neath</title>
<content type="html">&lt;p&gt;Good work, chaps.&lt;/p&gt;

&lt;p&gt;I've been meaning to add half of this stuff to my old post for ages but alas, laziness always gets the best of me.&lt;/p&gt;

&lt;p&gt;Thanks for the link :)&lt;/p&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/444158252" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-hello-paperclip</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>cam</name>
    </author>
    <id>tag:thewebfellas.com,2008-11-02:2250:2323</id>
    <published>2008-11-10T21:22:08Z</published>
    <updated>2008-11-10T21:22:08Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/444158252/goodbye-attachment_fu-hello-paperclip" rel="alternate" type="text/html" />
    <title>Comment on 'Goodbye attachment_fu, hello Paperclip' by cam</title>
<content type="html">&lt;p&gt;this is a sweet post. Just what I was looking for!!&lt;/p&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/444158252" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-hello-paperclip</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Kent Fenwick</name>
    </author>
    <id>tag:thewebfellas.com,2008-04-21:846:2317</id>
    <published>2008-11-10T07:30:16Z</published>
    <updated>2008-11-10T07:30:16Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/448206018/error-fields-with-a-hpricot-twist" rel="alternate" type="text/html" />
    <title>Comment on 'Error fields with a Hpricot twist' by Kent Fenwick</title>
<content type="html">&lt;p&gt;Awesome post!  I have been looking for something like this for a while.
Thanks so much for sharing!&lt;/p&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/448206018" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/4/21/error-fields-with-a-hpricot-twist</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>musk</name>
    </author>
    <id>tag:thewebfellas.com,2008-11-02:2250:2299</id>
    <published>2008-11-07T13:10:55Z</published>
    <updated>2008-11-07T13:10:55Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/444158252/goodbye-attachment_fu-hello-paperclip" rel="alternate" type="text/html" />
    <title>Comment on 'Goodbye attachment_fu, hello Paperclip' by musk</title>
<content type="html">&lt;p&gt;Great plugin so easy to setup and use. Just some additions that are not so obviouse from the rdoc. &lt;/p&gt;

&lt;p&gt;To configure paperclip you can add the following statements to your environment file&lt;/p&gt;

&lt;pre&gt;&lt;code class="ruby"&gt;# this is essential if you do not have ImageMagick in your search path
Paperclip.options[:image_magick_path]='Path/to/ImageMagick/executables'
# this makes paperclip complain if no resizing is not possible
Paperclip.options[:whiny_thumbnails]=true&lt;/code&gt;&lt;/pre&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/444158252" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-hello-paperclip</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Rob Anderton</name>
    </author>
    <id>tag:thewebfellas.com,2008-11-02:2250:2298</id>
    <published>2008-11-07T11:53:29Z</published>
    <updated>2008-11-07T11:53:29Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/444158252/goodbye-attachment_fu-hello-paperclip" rel="alternate" type="text/html" />
    <title>Comment on 'Goodbye attachment_fu, hello Paperclip' by Rob Anderton</title>
<content type="html">&lt;p&gt;In a spooky case of great minds thinking alike, Ryan Bates also posted a &lt;a href="http://railscasts.com/episodes/134-paperclip" title="See the RailsCast"&gt;RailsCast&lt;/a&gt; covering Paperclip this week! I’ve added a link to it in the post, but thought it was worth a mention here too in case you missed it.&lt;/p&gt;

&lt;p&gt;@DMitry: good question! I’ve added a new section about custom validations using MP3 files as an example so hopefully it’ll help.&lt;/p&gt;

&lt;p&gt;@Jon: you’re welcome and thanks for the plugin. Would be nice for us long-suffering Windows users to have the Tempfile patch in the plugin, one less thing for us to remember!&lt;/p&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/444158252" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-hello-paperclip</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>iioiooioo</name>
    </author>
    <id>tag:thewebfellas.com,2008-02-18:333:2295</id>
    <published>2008-11-07T04:32:27Z</published>
    <updated>2008-11-07T04:32:27Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/445298686/imagescience-on-windows-without-the-pain" rel="alternate" type="text/html" />
    <title>Comment on 'ImageScience on Windows without the pain' by iioiooioo</title>
<content type="html">&lt;p&gt;Thanks!&lt;/p&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/445298686" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/2/18/imagescience-on-windows-without-the-pain</feedburner:origLink></entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Jon Yurek</name>
    </author>
    <id>tag:thewebfellas.com,2008-11-02:2250:2291</id>
    <published>2008-11-06T15:00:20Z</published>
    <updated>2008-11-06T15:00:20Z</updated>
    <category term="Blog" />
    <link href="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~3/444158252/goodbye-attachment_fu-hello-paperclip" rel="alternate" type="text/html" />
    <title>Comment on 'Goodbye attachment_fu, hello Paperclip' by Jon Yurek</title>
<content type="html">&lt;p&gt;Thanks for the write-up! And thanks for that Windows Tempfile patch. I think that's worth adding into Paperclip itself.&lt;/p&gt;&lt;img src="http://feeds.thewebfellas.com/~r/thewebfellas/blog/comments/~4/444158252" height="1" width="1"/&gt;</content>  <feedburner:origLink>http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-hello-paperclip</feedburner:origLink></entry>
</feed>
