<?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: SWFUpload, Paperclip and Ruby on Rails</title>
	<atom:link href="http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/</link>
	<description>Ruby on Rails, Javascript, CSS and Standards</description>
	<lastBuildDate>Tue, 31 Aug 2010 04:37:10 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: joemsak</title>
		<link>http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/comment-page-2/#comment-1018</link>
		<dc:creator>joemsak</dc:creator>
		<pubDate>Tue, 27 Apr 2010 17:32:39 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=23#comment-1018</guid>
		<description>For anyone having the InvalidAuthenticityToken error, check out this comment from my blog post that followed this article:&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.joesak.com/2009/09/18/online-photo-gallery-payment-order-fulfillment-ruby-on-rails-tutorial/&quot; rel=&quot;nofollow&quot;&gt;http://www.joesak.com/2009/09/18/online-photo-g...&lt;/a&gt;&lt;br&gt;(@vincent&#039;s comment at the bottom)&lt;br&gt;&lt;br&gt;QUOTE:&lt;br&gt;Thank you for the instructions. For Rails 2.3.5, you should delete both of the following lines in your photo or asset controller:&lt;br&gt;#session :cookie_only =&gt; false, :only =&gt; :create&lt;br&gt;#skip_before_filter :verify_authenticity_token, :only =&gt; [&#039;create&#039;, &#039;destroy&#039;]&lt;br&gt;Instead, follow the example below to make SWFUpload work with Rails session, i.e. to avoid the InvalidAuthenticityToken error: &lt;a href=&quot;http://github.com/lardawge/swfupload-rails-authentication/tree/paperclip-example&quot; rel=&quot;nofollow&quot;&gt;http://github.com/lardawge/swfupload-rails-auth...&lt;/a&gt;.&lt;br&gt;When you follow the example above, pay attention to the following:&lt;br&gt;1. Changes in the javascript in the photo views.&lt;br&gt;2. Changes in session_store.rb and environment.rb to refer to the app/middleware folder, which you should copy from the example.&lt;br&gt;Good luck and have fun.</description>
		<content:encoded><![CDATA[<p>For anyone having the InvalidAuthenticityToken error, check out this comment from my blog post that followed this article:</p>
<p><a href="http://www.joesak.com/2009/09/18/online-photo-gallery-payment-order-fulfillment-ruby-on-rails-tutorial/" rel="nofollow"></a><a href="http://www.joesak.com/2009/09/18/online-photo-g.." rel="nofollow">http://www.joesak.com/2009/09/18/online-photo-g..</a>.<br />(@vincent&#39;s comment at the bottom)</p>
<p>QUOTE:<br />Thank you for the instructions. For Rails 2.3.5, you should delete both of the following lines in your photo or asset controller:<br />#session :cookie_only =&gt; false, :only =&gt; :create<br />#skip_before_filter :verify_authenticity_token, :only =&gt; [&#39;create&#39;, &#39;destroy&#39;]<br />Instead, follow the example below to make SWFUpload work with Rails session, i.e. to avoid the InvalidAuthenticityToken error: <a href="http://github.com/lardawge/swfupload-rails-authentication/tree/paperclip-example" rel="nofollow"></a><a href="http://github.com/lardawge/swfupload-rails-auth.." rel="nofollow">http://github.com/lardawge/swfupload-rails-auth..</a>..<br />When you follow the example above, pay attention to the following:<br />1. Changes in the javascript in the photo views.<br />2. Changes in session_store.rb and environment.rb to refer to the app/middleware folder, which you should copy from the example.<br />Good luck and have fun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tscolari</title>
		<link>http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/comment-page-2/#comment-992</link>
		<dc:creator>tscolari</dc:creator>
		<pubDate>Thu, 04 Mar 2010 21:17:46 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=23#comment-992</guid>
		<description>Hello, &lt;br&gt;I tried as your said, but Im getting 302 error because my controller is redirecting me for the login page.&lt;br&gt;I&#039;ve placed your initializer and the session line on the controller.&lt;br&gt;Im usiging  authlogic, any idea where i could look for a fix?</description>
		<content:encoded><![CDATA[<p>Hello, <br />I tried as your said, but Im getting 302 error because my controller is redirecting me for the login page.<br />I&#39;ve placed your initializer and the session line on the controller.<br />Im usiging  authlogic, any idea where i could look for a fix?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/comment-page-2/#comment-986</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 12 Feb 2010 07:05:48 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=23#comment-986</guid>
		<description>An old post but still useful and comes up near the top on google for rails swfupload,&lt;br&gt;&lt;br&gt;But if you&#039;d replace &lt;br&gt;MIME::Types.type_for(data.original_filename).to_s&lt;br&gt;with&lt;br&gt;MIME::Types.type_for(data.original_filename).first.content_type&lt;br&gt;&lt;br&gt;You&#039;d save some headaches.</description>
		<content:encoded><![CDATA[<p>An old post but still useful and comes up near the top on google for rails swfupload,</p>
<p>But if you&#39;d replace <br />MIME::Types.type_for(data.original_filename).to_s<br />with<br />MIME::Types.type_for(data.original_filename).first.content_type</p>
<p>You&#39;d save some headaches.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas VOD and visioconference</title>
		<link>http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/comment-page-2/#comment-982</link>
		<dc:creator>Thomas VOD and visioconference</dc:creator>
		<pubDate>Sat, 09 Jan 2010 12:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=23#comment-982</guid>
		<description>Yeah not easy to implement this upload feature. We actually need a kind of &quot;official&quot; way of doing things. Implementing such feature might break in the next release of Rails don&#039;t you think?</description>
		<content:encoded><![CDATA[<p>Yeah not easy to implement this upload feature. We actually need a kind of &#8220;official&#8221; way of doing things. Implementing such feature might break in the next release of Rails don&#39;t you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Online Photo Gallery, Payment &#38; Order Fulfillment: Ruby on Rails Tutorial &#124; Joe Sak</title>
		<link>http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/comment-page-2/#comment-959</link>
		<dc:creator>Online Photo Gallery, Payment &#38; Order Fulfillment: Ruby on Rails Tutorial &#124; Joe Sak</dc:creator>
		<pubDate>Fri, 18 Sep 2009 16:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=23#comment-959</guid>
		<description>[...] Let&#8217;s go see http://localhost:3000/galleries and play around. Add a gallery and then go to edit it. This is where we&#8217;ll add SWFUpload. Follow Jim Neath&#8217;s advice for this. [...]</description>
		<content:encoded><![CDATA[<p>[...] Let&#8217;s go see <a href="http://localhost:3000/galleries" rel="nofollow">http://localhost:3000/galleries</a> and play around. Add a gallery and then go to edit it. This is where we&#8217;ll add SWFUpload. Follow Jim Neath&#8217;s advice for this. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Note it! : rails session investigation</title>
		<link>http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/comment-page-2/#comment-957</link>
		<dc:creator>Note it! : rails session investigation</dc:creator>
		<pubDate>Wed, 27 May 2009 06:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=23#comment-957</guid>
		<description>[...] SWFUpload, Paperclip and Ruby on Rails [...]</description>
		<content:encoded><![CDATA[<p>[...] SWFUpload, Paperclip and Ruby on Rails [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lardawge</title>
		<link>http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/comment-page-2/#comment-953</link>
		<dc:creator>lardawge</dc:creator>
		<pubDate>Thu, 14 May 2009 14:31:23 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=23#comment-953</guid>
		<description>Hi Jim, 

Thought I would let you know I created a branch here: http://tiny.cc/swfuploadrailsauthentication using paperclip. So there is an example with both attachment_fu and paperclip now. Only made sense because I actually use paperclip in my own projects.

~Larry</description>
		<content:encoded><![CDATA[<p>Hi Jim, </p>
<p>Thought I would let you know I created a branch here: <a href="http://tiny.cc/swfuploadrailsauthentication" rel="nofollow">http://tiny.cc/swfuploadrailsauthentication</a> using paperclip. So there is an example with both attachment_fu and paperclip now. Only made sense because I actually use paperclip in my own projects.</p>
<p>~Larry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GreenAsJade</title>
		<link>http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/comment-page-2/#comment-948</link>
		<dc:creator>GreenAsJade</dc:creator>
		<pubDate>Wed, 29 Apr 2009 12:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=23#comment-948</guid>
		<description>I did

git clone git://github.com/JimNeath/swfupload---paperclip-example-app.git
cd swfupload---paperclip-example-app

rake db:migrate

and get

rake aborted!
undefined method `cache_template_extensions=&#039; for ActionView::Base:Class

My RAILS_GEM_VERSION is 2.2.2

Is there an easy way to get past this?</description>
		<content:encoded><![CDATA[<p>I did</p>
<p>git clone git://github.com/JimNeath/swfupload&#8212;paperclip-example-app.git<br />
cd swfupload&#8212;paperclip-example-app</p>
<p>rake db:migrate</p>
<p>and get</p>
<p>rake aborted!<br />
undefined method `cache_template_extensions=&#8217; for ActionView::Base:Class</p>
<p>My RAILS_GEM_VERSION is 2.2.2</p>
<p>Is there an easy way to get past this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sohel Merchant</title>
		<link>http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/comment-page-2/#comment-943</link>
		<dc:creator>Sohel Merchant</dc:creator>
		<pubDate>Tue, 21 Apr 2009 19:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=23#comment-943</guid>
		<description>Hi, I have been trying to battle with using the demo app with Rails 2.3 with no success yet. My question is that whether using CGI::Session is still feasible with Rails 2.3. After using the application in 2.3 I have found that my files do not get uploaded at all. I am looking for solution which uses CGi Session instead of Rack,</description>
		<content:encoded><![CDATA[<p>Hi, I have been trying to battle with using the demo app with Rails 2.3 with no success yet. My question is that whether using CGI::Session is still feasible with Rails 2.3. After using the application in 2.3 I have found that my files do not get uploaded at all. I am looking for solution which uses CGi Session instead of Rack,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Sak</title>
		<link>http://jimneath.org/2008/05/15/swfupload-paperclip-and-ruby-on-rails/comment-page-2/#comment-939</link>
		<dc:creator>Joe Sak</dc:creator>
		<pubDate>Mon, 13 Apr 2009 23:53:31 +0000</pubDate>
		<guid isPermaLink="false">http://jimneath.org/?p=23#comment-939</guid>
		<description>I am having the same problem as @peter. I get the &quot;browse&quot; button bug. Nothing happens when I click it.</description>
		<content:encoded><![CDATA[<p>I am having the same problem as @peter. I get the &#8220;browse&#8221; button bug. Nothing happens when I click it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
