<?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: Aegis: Role-based Permissions for your Ruby on Rails application</title>
	<atom:link href="http://www.agileweboperations.com/role-based-permissions-for-your-ruby-on-rails-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.agileweboperations.com/role-based-permissions-for-your-ruby-on-rails-application/</link>
	<description>Helping web developers and operations bridge the deployment gap</description>
	<lastBuildDate>Fri, 19 Mar 2010 21:00:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Henning Koch</title>
		<link>http://www.agileweboperations.com/role-based-permissions-for-your-ruby-on-rails-application/comment-page-1/#comment-1928</link>
		<dc:creator>Henning Koch</dc:creator>
		<pubDate>Fri, 12 Mar 2010 10:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=1434#comment-1928</guid>
		<description>@Dave: When you implement authentication in Rails, it is useful to define a helper method in your ApplicationController that returns the user currently signed in. This method is often called &lt;code&gt;current_user&lt;/code&gt;.

My suggestion to Chris was to enhance his current_user method, so it returns a new, unsaved guest user in case no user is signed in for this session.</description>
		<content:encoded><![CDATA[<p>@Dave: When you implement authentication in Rails, it is useful to define a helper method in your ApplicationController that returns the user currently signed in. This method is often called <code>current_user</code>.</p>
<p>My suggestion to Chris was to enhance his current_user method, so it returns a new, unsaved guest user in case no user is signed in for this session.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Flynn</title>
		<link>http://www.agileweboperations.com/role-based-permissions-for-your-ruby-on-rails-application/comment-page-1/#comment-1927</link>
		<dc:creator>Dave Flynn</dc:creator>
		<pubDate>Tue, 09 Mar 2010 09:08:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=1434#comment-1927</guid>
		<description>@Henning Koch,
can you elaborate a bit on the code you gave to Chris about setting up a guest user:

def find_current_user @current_user = User.find_by_id(session[&quot;user_id&quot;]) &#124;&#124; User.new(:role_name =&gt; &quot;guest&quot;) end

I am using Authlogic but having trouble finding where I should create the temporary guest user

Thanks!</description>
		<content:encoded><![CDATA[<p>@Henning Koch,<br />
can you elaborate a bit on the code you gave to Chris about setting up a guest user:</p>
<p>def find_current_user @current_user = User.find_by_id(session["user_id"]) || User.new(:role_name =&gt; &#8220;guest&#8221;) end</p>
<p>I am using Authlogic but having trouble finding where I should create the temporary guest user</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Flynn</title>
		<link>http://www.agileweboperations.com/role-based-permissions-for-your-ruby-on-rails-application/comment-page-1/#comment-1926</link>
		<dc:creator>Dave Flynn</dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=1434#comment-1926</guid>
		<description>@Enduras make sure you restart your server after installing the gem, I had the same problem and this resolved it.</description>
		<content:encoded><![CDATA[<p>@Enduras make sure you restart your server after installing the gem, I had the same problem and this resolved it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillaume</title>
		<link>http://www.agileweboperations.com/role-based-permissions-for-your-ruby-on-rails-application/comment-page-1/#comment-1891</link>
		<dc:creator>Guillaume</dc:creator>
		<pubDate>Thu, 17 Dec 2009 20:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=1434#comment-1891</guid>
		<description>Yehaaaaa :-)

Great job, exactly what I needed. Thanks for sharing !</description>
		<content:encoded><![CDATA[<p>Yehaaaaa <img src='http://www.agileweboperations.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Great job, exactly what I needed. Thanks for sharing !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enduras</title>
		<link>http://www.agileweboperations.com/role-based-permissions-for-your-ruby-on-rails-application/comment-page-1/#comment-1880</link>
		<dc:creator>Enduras</dc:creator>
		<pubDate>Fri, 04 Dec 2009 17:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=1434#comment-1880</guid>
		<description>Hello,
i am completly new to ruby on rails and just experimenting with it at the moment to check if i wanna go future with it, so i am trying out some basics every application need kinda so installed me clearance which is working fine and also found your gem which seems to fit my needs fine, other are either too simple or too complex.
But i just dont get this to work i kinda made the stuff as in the sample but i keep getting all the time 
undefined local variable or method `has_role&#039; for #
I guess its something really simple not mentioned in the guide which isnt a problem for  a experienced rails user but for newbs like me.</description>
		<content:encoded><![CDATA[<p>Hello,<br />
i am completly new to ruby on rails and just experimenting with it at the moment to check if i wanna go future with it, so i am trying out some basics every application need kinda so installed me clearance which is working fine and also found your gem which seems to fit my needs fine, other are either too simple or too complex.<br />
But i just dont get this to work i kinda made the stuff as in the sample but i keep getting all the time<br />
undefined local variable or method `has_role&#8217; for #<br />
I guess its something really simple not mentioned in the guide which isnt a problem for  a experienced rails user but for newbs like me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henning Koch</title>
		<link>http://www.agileweboperations.com/role-based-permissions-for-your-ruby-on-rails-application/comment-page-1/#comment-1867</link>
		<dc:creator>Henning Koch</dc:creator>
		<pubDate>Tue, 10 Nov 2009 21:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=1434#comment-1867</guid>
		<description>@Brad: Just use the &quot;has_role&quot; directive in the same user model where you set up Devise. Like Clearance and Authlogic, Devise provides a &quot;current_user&quot; getter for your controller on which you can invoke aegis methods like &quot;current_user.may_create_orders?&quot;.

Aegis really doesn&#039;t care which authentication plugin you&#039;re using.</description>
		<content:encoded><![CDATA[<p>@Brad: Just use the &#8220;has_role&#8221; directive in the same user model where you set up Devise. Like Clearance and Authlogic, Devise provides a &#8220;current_user&#8221; getter for your controller on which you can invoke aegis methods like &#8220;current_user.may_create_orders?&#8221;.</p>
<p>Aegis really doesn&#8217;t care which authentication plugin you&#8217;re using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad</title>
		<link>http://www.agileweboperations.com/role-based-permissions-for-your-ruby-on-rails-application/comment-page-1/#comment-1865</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Mon, 09 Nov 2009 21:47:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=1434#comment-1865</guid>
		<description>I agree, I think one User model with access rules is much better than a model per role.  So do you know how this would work with one Devise User model?  I&#039;m assuming it&#039;s fine?</description>
		<content:encoded><![CDATA[<p>I agree, I think one User model with access rules is much better than a model per role.  So do you know how this would work with one Devise User model?  I&#8217;m assuming it&#8217;s fine?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henning Koch</title>
		<link>http://www.agileweboperations.com/role-based-permissions-for-your-ruby-on-rails-application/comment-page-1/#comment-1864</link>
		<dc:creator>Henning Koch</dc:creator>
		<pubDate>Mon, 09 Nov 2009 08:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=1434#comment-1864</guid>
		<description>@Brad: Using devise&#039;s multiple-model-authentication to manage access rules would be rather inconvenient. I don&#039;t think it was meant for fine-grained permission management.</description>
		<content:encoded><![CDATA[<p>@Brad: Using devise&#8217;s multiple-model-authentication to manage access rules would be rather inconvenient. I don&#8217;t think it was meant for fine-grained permission management.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad</title>
		<link>http://www.agileweboperations.com/role-based-permissions-for-your-ruby-on-rails-application/comment-page-1/#comment-1863</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Fri, 06 Nov 2009 15:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=1434#comment-1863</guid>
		<description>Has anyone used this with devise?  I&#039;ve started looking at devise and I like the idea of a rack based auth solution.  It has roles *kindof* in that you can use authentication with any model you like (admin, user etc) but that&#039;s not ideal for users with multiple roles.  I&#039;d be interested to see how this stacks up in devise vs, say, clearance</description>
		<content:encoded><![CDATA[<p>Has anyone used this with devise?  I&#8217;ve started looking at devise and I like the idea of a rack based auth solution.  It has roles *kindof* in that you can use authentication with any model you like (admin, user etc) but that&#8217;s not ideal for users with multiple roles.  I&#8217;d be interested to see how this stacks up in devise vs, say, clearance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henning Koch</title>
		<link>http://www.agileweboperations.com/role-based-permissions-for-your-ruby-on-rails-application/comment-page-1/#comment-1860</link>
		<dc:creator>Henning Koch</dc:creator>
		<pubDate>Mon, 02 Nov 2009 11:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.agileweboperations.com/?p=1434#comment-1860</guid>
		<description>@Yuriy: You should be able to use symbols to refer to roles.

Make sure that the role_name attribute in your user model receives the role name as a string though. ActiveRecord can only store strings since the database has no concept of Ruby symbols.</description>
		<content:encoded><![CDATA[<p>@Yuriy: You should be able to use symbols to refer to roles.</p>
<p>Make sure that the role_name attribute in your user model receives the role name as a string though. ActiveRecord can only store strings since the database has no concept of Ruby symbols.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
