<?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: Recipe: RESTful permissions for Rails</title>
	<atom:link href="http://clearcove.ca/blog/2008/08/recipe-restful-permissions-for-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://clearcove.ca/blog/2008/08/recipe-restful-permissions-for-rails/</link>
	<description>Jo Hund's software engineering blog</description>
	<lastBuildDate>Thu, 01 Apr 2010 08:15:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jeff K. Ward</title>
		<link>http://clearcove.ca/blog/2008/08/recipe-restful-permissions-for-rails/comment-page-1/#comment-47</link>
		<dc:creator>Jeff K. Ward</dc:creator>
		<pubDate>Wed, 22 Oct 2008 06:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=117#comment-47</guid>
		<description>Great recipe. I&#039;ve started a new project this week and am setting everything up as you&#039;ve outlined here. Very clear and concise instructions and lots to chew on. 

I initially shrugged off using make_resourceful but now that I have all these &quot;raise PermissionViolation&quot; lines everywhere I can see how it will help keep it DRY. Works well together.

Oh, and your gist link still has Person in the code instead of User.

Thanks again for another amazing post. Keep &#039;em coming!</description>
		<content:encoded><![CDATA[<p>Great recipe. I&#8217;ve started a new project this week and am setting everything up as you&#8217;ve outlined here. Very clear and concise instructions and lots to chew on. </p>
<p>I initially shrugged off using make_resourceful but now that I have all these &#8220;raise PermissionViolation&#8221; lines everywhere I can see how it will help keep it DRY. Works well together.</p>
<p>Oh, and your gist link still has Person in the code instead of User.</p>
<p>Thanks again for another amazing post. Keep &#8216;em coming!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ActsAsFlinn</title>
		<link>http://clearcove.ca/blog/2008/08/recipe-restful-permissions-for-rails/comment-page-1/#comment-31</link>
		<dc:creator>ActsAsFlinn</dc:creator>
		<pubDate>Mon, 13 Oct 2008 13:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=117#comment-31</guid>
		<description>@Jo Hund nice thanks!</description>
		<content:encoded><![CDATA[<p>@Jo Hund nice thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jo Hund</title>
		<link>http://clearcove.ca/blog/2008/08/recipe-restful-permissions-for-rails/comment-page-1/#comment-27</link>
		<dc:creator>Jo Hund</dc:creator>
		<pubDate>Fri, 10 Oct 2008 16:43:03 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=117#comment-27</guid>
		<description>@ActsAsFlinn: Rails uses Thread.current to store the current Timezone. Check out the &lt;a href=&quot;http://github.com/rails/rails/tree/master/activesupport/lib/active_support/core_ext/time/zones.rb&quot; rel=&quot;nofollow&quot;&gt;Rails source&lt;/a&gt; for more info (lines 14 - getter and  37 - setter).

@emerb: Not sure how you use method_missing. As a safeguard for permission checks you haven&#039;t implemented? You return false by default? I use method_missing as little as possible. Jay Fields has convinced me in one of his &lt;a href=&quot;http://blog.jayfields.com/2008_02_01_archive.html&quot; rel=&quot;nofollow&quot;&gt;articles&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>@ActsAsFlinn: Rails uses Thread.current to store the current Timezone. Check out the <a href="http://github.com/rails/rails/tree/master/activesupport/lib/active_support/core_ext/time/zones.rb" rel="nofollow">Rails source</a> for more info (lines 14 &#8211; getter and  37 &#8211; setter).</p>
<p>@emerb: Not sure how you use method_missing. As a safeguard for permission checks you haven&#8217;t implemented? You return false by default? I use method_missing as little as possible. Jay Fields has convinced me in one of his <a href="http://blog.jayfields.com/2008_02_01_archive.html" rel="nofollow">articles</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emerb</title>
		<link>http://clearcove.ca/blog/2008/08/recipe-restful-permissions-for-rails/comment-page-1/#comment-26</link>
		<dc:creator>emerb</dc:creator>
		<pubDate>Fri, 10 Oct 2008 15:33:31 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=117#comment-26</guid>
		<description>I implemented something similar (more general though), in my implementation I use the method missing to return false when the method ends with &#039;?&#039;, I think you could do that as well</description>
		<content:encoded><![CDATA[<p>I implemented something similar (more general though), in my implementation I use the method missing to return false when the method ends with &#8216;?&#8217;, I think you could do that as well</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ActsAsFlinn</title>
		<link>http://clearcove.ca/blog/2008/08/recipe-restful-permissions-for-rails/comment-page-1/#comment-25</link>
		<dc:creator>ActsAsFlinn</dc:creator>
		<pubDate>Fri, 10 Oct 2008 15:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=117#comment-25</guid>
		<description>In your intro you mentioned that Rails does something like this somewhere:

&lt;code&gt;Thread.current[:user]&lt;/code&gt;

Can you point that out so I can better understand the context.</description>
		<content:encoded><![CDATA[<p>In your intro you mentioned that Rails does something like this somewhere:</p>
<p><code>Thread.current[:user]</code></p>
<p>Can you point that out so I can better understand the context.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jhund</title>
		<link>http://clearcove.ca/blog/2008/08/recipe-restful-permissions-for-rails/comment-page-1/#comment-21</link>
		<dc:creator>jhund</dc:creator>
		<pubDate>Mon, 29 Sep 2008 22:29:43 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=117#comment-21</guid>
		<description>@Anthony: Yes, if you go with the standard naming for restful_authentication, then you have to use &#039;User&#039; instead of &#039;Person&#039;.

I prefer to use Person (even with restful_authentication). It seems a bit more personal than &#039;user&#039;.

I am in the process of updating this recipe and will push it to &lt;a href=&quot;http://github.com/jhund/rails-recipes/tree/master/restful-permissions&quot; rel=&quot;nofollow&quot;&gt;github&lt;/a&gt; pretty soon. That&#039;s where I will maintain these recipes. Makes managing changes easier.

Thanks for your interest.</description>
		<content:encoded><![CDATA[<p>@Anthony: Yes, if you go with the standard naming for restful_authentication, then you have to use &#8216;User&#8217; instead of &#8216;Person&#8217;.</p>
<p>I prefer to use Person (even with restful_authentication). It seems a bit more personal than &#8216;user&#8217;.</p>
<p>I am in the process of updating this recipe and will push it to <a href="http://github.com/jhund/rails-recipes/tree/master/restful-permissions" rel="nofollow">github</a> pretty soon. That&#8217;s where I will maintain these recipes. Makes managing changes easier.</p>
<p>Thanks for your interest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony Underwood</title>
		<link>http://clearcove.ca/blog/2008/08/recipe-restful-permissions-for-rails/comment-page-1/#comment-20</link>
		<dc:creator>Anthony Underwood</dc:creator>
		<pubDate>Mon, 29 Sep 2008 22:09:20 +0000</pubDate>
		<guid isPermaLink="false">http://clearcove.ca/?p=117#comment-20</guid>
		<description>I like the idea and it is already making my app DRYer. However using restful_authentication, should actor.is_a?(Person) not be actor.is_a?(User)?

The latter worked for me whereas the former failed to ever give permission.</description>
		<content:encoded><![CDATA[<p>I like the idea and it is already making my app DRYer. However using restful_authentication, should actor.is_a?(Person) not be actor.is_a?(User)?</p>
<p>The latter worked for me whereas the former failed to ever give permission.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.268 seconds -->
