<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Easy Upload via URL with Paperclip</title>
	<atom:link href="http://trevorturk.wordpress.com/2008/12/11/easy-upload-via-url-with-paperclip/feed/" rel="self" type="application/rss+xml" />
	<link>http://trevorturk.wordpress.com/2008/12/11/easy-upload-via-url-with-paperclip/</link>
	<description>A chess-playing machine of the late 18th century, promoted as an automaton but later proved a hoax.</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:13:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: remino</title>
		<link>http://trevorturk.wordpress.com/2008/12/11/easy-upload-via-url-with-paperclip/#comment-781</link>
		<dc:creator><![CDATA[remino]]></dc:creator>
		<pubDate>Tue, 06 Dec 2011 11:03:39 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=991#comment-781</guid>
		<description><![CDATA[Thanks for this! Works quite well. The only thing I&#039;d do from that point is moving the private methods you added in a reusable module. Then, make a gem. ;) ]]></description>
		<content:encoded><![CDATA[<p>Thanks for this! Works quite well. The only thing I&#039;d do from that point is moving the private methods you added in a reusable module. Then, make a gem. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Colgate</title>
		<link>http://trevorturk.wordpress.com/2008/12/11/easy-upload-via-url-with-paperclip/#comment-780</link>
		<dc:creator><![CDATA[Nathan Colgate]]></dc:creator>
		<pubDate>Wed, 13 Jul 2011 19:34:53 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=991#comment-780</guid>
		<description><![CDATA[This was exactly what I needed. So elegant. Thanks. ]]></description>
		<content:encoded><![CDATA[<p>This was exactly what I needed. So elegant. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Bloom</title>
		<link>http://trevorturk.wordpress.com/2008/12/11/easy-upload-via-url-with-paperclip/#comment-779</link>
		<dc:creator><![CDATA[Chris Bloom]]></dc:creator>
		<pubDate>Tue, 31 May 2011 12:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=991#comment-779</guid>
		<description><![CDATA[I was having trouble getting this to work through mass assignment (i.e. via some_model.create!(attrs)). I was using the whitelist approach to mass assignment with  attr_accesible. The solution was to pass image_url to both attr_accessor and attr_accessible:
 

 

 
class MyModel &lt; ActiveRecord::Base
 
  attr_accessible :name, :description, :image_url
 
  attr_accessor :image_url
 
  
 
  ...
 

 
end
 

 

 
Also, @Štefan&#039;s fix worked for me in Rails 3.0.7 ]]></description>
		<content:encoded><![CDATA[<p>I was having trouble getting this to work through mass assignment (i.e. via some_model.create!(attrs)). I was using the whitelist approach to mass assignment with  attr_accesible. The solution was to pass image_url to both attr_accessor and attr_accessible:</p>
<p>class MyModel &lt; ActiveRecord::Base</p>
<p>  attr_accessible :name, :description, :image_url</p>
<p>  attr_accessor :image_url</p>
<p>  &#8230;</p>
<p>end</p>
<p>Also, @Štefan&#8217;s fix worked for me in Rails 3.0.7</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jm</title>
		<link>http://trevorturk.wordpress.com/2008/12/11/easy-upload-via-url-with-paperclip/#comment-778</link>
		<dc:creator><![CDATA[jm]]></dc:creator>
		<pubDate>Wed, 25 May 2011 13:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=991#comment-778</guid>
		<description><![CDATA[Thx for the code.
 
I get a :
 
No such file or directory - &lt;a href=&quot;http://media.paperblog.fr/i/267/2678502/doute-L-1.jpeg&quot; rel=&quot;nofollow&quot;&gt;http://media.paperblog.fr/i/267/2678502/doute-L-1...&lt;/a&gt;  
Seems like open cannot open url but only local files. Any idea ?
 
Thx ]]></description>
		<content:encoded><![CDATA[<p>Thx for the code.</p>
<p>I get a :</p>
<p>No such file or directory &#8211; <a href="http://media.paperblog.fr/i/267/2678502/doute-L-1.jpeg" rel="nofollow">http://media.paperblog.fr/i/267/2678502/doute-L-1&#8230;</a><br />
Seems like open cannot open url but only local files. Any idea ?</p>
<p>Thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bkmn</title>
		<link>http://trevorturk.wordpress.com/2008/12/11/easy-upload-via-url-with-paperclip/#comment-777</link>
		<dc:creator><![CDATA[bkmn]]></dc:creator>
		<pubDate>Sat, 09 Apr 2011 18:16:52 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=991#comment-777</guid>
		<description><![CDATA[David, you must have forgotten of this line: 
attr_accessor :image_url ]]></description>
		<content:encoded><![CDATA[<p>David, you must have forgotten of this line:<br />
attr_accessor :image_url</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Tuite</title>
		<link>http://trevorturk.wordpress.com/2008/12/11/easy-upload-via-url-with-paperclip/#comment-776</link>
		<dc:creator><![CDATA[David Tuite]]></dc:creator>
		<pubDate>Thu, 31 Mar 2011 10:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=991#comment-776</guid>
		<description><![CDATA[I&#039;m pretty sure I&#039;ve followed this tutorial exactly but when I try to load my view, I get the error: 
 
undefined method `image_url&#039; for #&lt;User:0xa00aa28&gt; 
 
My model is set up so that a user has_attached_file :image. 
 
Anybody got any idea what&#039;s wrong? ]]></description>
		<content:encoded><![CDATA[<p>I&#039;m pretty sure I&#039;ve followed this tutorial exactly but when I try to load my view, I get the error: </p>
<p>undefined method `image_url&#039; for #&lt;User:0xa00aa28&gt; </p>
<p>My model is set up so that a user has_attached_file :image. </p>
<p>Anybody got any idea what&#039;s wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://trevorturk.wordpress.com/2008/12/11/easy-upload-via-url-with-paperclip/#comment-775</link>
		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Sun, 27 Feb 2011 20:03:24 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=991#comment-775</guid>
		<description><![CDATA[Thanks. Although, I&#039;m not sure that&#039;s applicable in this instance. I&#039;m uploading directly to S3, so there&#039;s no need to pass around session identifiers. ]]></description>
		<content:encoded><![CDATA[<p>Thanks. Although, I&#039;m not sure that&#039;s applicable in this instance. I&#039;m uploading directly to S3, so there&#039;s no need to pass around session identifiers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trevor</title>
		<link>http://trevorturk.wordpress.com/2008/12/11/easy-upload-via-url-with-paperclip/#comment-774</link>
		<dc:creator><![CDATA[Trevor]]></dc:creator>
		<pubDate>Sun, 27 Feb 2011 18:04:42 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=991#comment-774</guid>
		<description><![CDATA[Mike, have a look at this: &lt;a href=&quot;https://github.com/trevorturk/flash_cookie_session&quot; rel=&quot;nofollow&quot;&gt;https://github.com/trevorturk/flash_cookie_sessio...&lt;/a&gt; ]]></description>
		<content:encoded><![CDATA[<p>Mike, have a look at this: <a href="https://github.com/trevorturk/flash_cookie_session" rel="nofollow">https://github.com/trevorturk/flash_cookie_sessio&#8230;</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://trevorturk.wordpress.com/2008/12/11/easy-upload-via-url-with-paperclip/#comment-773</link>
		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Sun, 27 Feb 2011 14:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=991#comment-773</guid>
		<description><![CDATA[Excellent post! Thanks! I&#039;m going to be integrating this with SWFUpload and direct upload to S3. I&#039;ll post the code when I&#039;m finished. ]]></description>
		<content:encoded><![CDATA[<p>Excellent post! Thanks! I&#039;m going to be integrating this with SWFUpload and direct upload to S3. I&#039;ll post the code when I&#039;m finished.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernhard</title>
		<link>http://trevorturk.wordpress.com/2008/12/11/easy-upload-via-url-with-paperclip/#comment-772</link>
		<dc:creator><![CDATA[Bernhard]]></dc:creator>
		<pubDate>Fri, 05 Nov 2010 00:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://almosteffortless.com/?p=991#comment-772</guid>
		<description><![CDATA[Wonderful! I found your code via Google and you made my day since you exactly created what I needed. Thanks a thousand times. ]]></description>
		<content:encoded><![CDATA[<p>Wonderful! I found your code via Google and you made my day since you exactly created what I needed. Thanks a thousand times.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

