<?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: Private, Authenticated RSS Feeds in Rails</title>
	<atom:link href="http://www.justinbritten.com/work/2009/02/private-secure-authenticated-rss-feeds-in-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinbritten.com/work/2009/02/private-secure-authenticated-rss-feeds-in-rails/</link>
	<description>Ruby on Rails web application design, development and consulting</description>
	<lastBuildDate>Tue, 31 Aug 2010 21:37:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: ??????? rss</title>
		<link>http://www.justinbritten.com/work/2009/02/private-secure-authenticated-rss-feeds-in-rails/#comment-164</link>
		<dc:creator>??????? rss</dc:creator>
		<pubDate>Thu, 03 Dec 2009 07:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=247#comment-164</guid>
		<description>&lt;a href=&quot;http://yrss.ru&quot; rel=&quot;nofollow&quot;&gt;???????? rss&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://yrss.ru" rel="nofollow">???????? rss</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://www.justinbritten.com/work/2009/02/private-secure-authenticated-rss-feeds-in-rails/#comment-163</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Tue, 08 Sep 2009 03:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=247#comment-163</guid>
		<description>I&#039;m just a lowly noob but think you can get your pretty named rout back if you use this.

&lt;pre&gt;
map.resources :account, :collection =&gt; {:feed =&gt; :get}
&lt;/pre&gt;

Then you can use this.

&lt;pre&gt;
 :rss, :token =&gt; @account.feed_token) %&gt;
&lt;/pre&gt;

Great tutorial by the way.  Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;m just a lowly noob but think you can get your pretty named rout back if you use this.</p>
<pre>
map.resources :account, :collection =&gt; {:feed =&gt; :get}
</pre>
<p>Then you can use this.</p>
<pre>
 :rss, :token =&gt; @account.feed_token) %&gt;
</pre>
<p>Great tutorial by the way.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.justinbritten.com/work/2009/02/private-secure-authenticated-rss-feeds-in-rails/#comment-162</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Mon, 04 May 2009 18:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=247#comment-162</guid>
		<description>Yeah, I&#039;m seeing this too in Rails 2.3.2.  Perhaps a bug with named routes.  Here&#039;s how I&#039;ve worked around it:

&lt;pre lang=&quot;rails&quot;&gt;
map.connect &#039;comments/:token/feed.:format&#039;, :controller =&gt; &#039;comments&#039;, :action =&gt; &#039;feed&#039;
&lt;/pre&gt;

Now, the side effect is that you don&#039;t have a pretty named route for your view.  So, you&#039;ll have to link to the URL using:

&lt;pre lang=&quot;rails&quot;&gt;
&lt;%= link_to &#039;Subscribe&#039;, :controller =&gt; &#039;comments&#039;, :action =&gt; &#039;feed&#039;, :token =&gt; @account.feed_token, :format =&gt; :rss %&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Yeah, I&#8217;m seeing this too in Rails 2.3.2.  Perhaps a bug with named routes.  Here&#8217;s how I&#8217;ve worked around it:</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;">map.<span style="color:#9900CC;">connect</span> <span style="color:#996600;">'comments/:token/feed.:format'</span>, <span style="color:#ff3333; font-weight:bold;">:controller</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'comments'</span>, <span style="color:#ff3333; font-weight:bold;">:action</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'feed'</span></pre></div></div>

<p>Now, the side effect is that you don&#8217;t have a pretty named route for your view.  So, you&#8217;ll have to link to the URL using:</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;"><span style="color:#006600; font-weight:bold;">&lt;%</span>= <span style="color:#5A0A0A; font-weight:bold;">link_to</span> <span style="color:#996600;">'Subscribe'</span>, <span style="color:#ff3333; font-weight:bold;">:controller</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'comments'</span>, <span style="color:#ff3333; font-weight:bold;">:action</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'feed'</span>, <span style="color:#ff3333; font-weight:bold;">:token</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0066ff; font-weight:bold;">@account</span>.<span style="color:#9900CC;">feed_token</span>, <span style="color:#ff3333; font-weight:bold;">:format</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:rss</span> <span style="color:#006600; font-weight:bold;">%&gt;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Anton</title>
		<link>http://www.justinbritten.com/work/2009/02/private-secure-authenticated-rss-feeds-in-rails/#comment-161</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Sun, 03 May 2009 18:50:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.justinbritten.com/work/?p=247#comment-161</guid>
		<description>Hello,

The map.resources do ... seems to no longer work in rails 2.3.2, resulting in the following error:

/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/optimisations.rb:94:in `interpolation_chunk&#039;: wrong number of arguments (1 for 0) (ArgumentError)

Any ideas on how this could be fixed?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>The map.resources do &#8230; seems to no longer work in rails 2.3.2, resulting in the following error:</p>
<p>/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/routing/optimisations.rb:94:in `interpolation_chunk&#8217;: wrong number of arguments (1 for 0) (ArgumentError)</p>
<p>Any ideas on how this could be fixed?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
