<?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 for Big Nerd Ranch Blog</title>
	<atom:link href="http://blog.bignerdranch.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bignerdranch.com</link>
	<description>We offer classes for programmers in a resort-like setting, and this is our blog.</description>
	<lastBuildDate>Thu, 20 Jun 2013 01:48:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>Comment on Lazy User Registration for Rails Apps by Zac Stewart</title>
		<link>http://blog.bignerdranch.com/1679-lazy-user-registration-for-rails-apps/#comment-443529</link>
		<dc:creator>Zac Stewart</dc:creator>
		<pubDate>Thu, 20 Jun 2013 01:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bignerdranch.com/1679-lazy-user-registration-for-rails-apps/#comment-443529</guid>
		<description>It&#039;s worth nothing that this is definitely an intermediate to advanced Rails technique, and might be confusing if you don&#039;t have a solid understanding of the framework already. The amount of background knowledge it would take to write this as a beginner tutorial would make it quite a long read.

That said, I may be able to shed some light on your specific scenario:

1) By changing via logic I mean that you can no longer check for something like &quot;current_user.present?&quot; to determine whether you have a user signed in, because by nature of what this feature does, there will always be a current_user present. Instead, you will have to determine whether it is an AnonymousUser or a User (the logged in kind), in my case, I include a convenience method, &quot;anonymous?&quot; on both of these classes which responds accordingly.

2) Because at any given time, a user may be a User or an AnonymousUser, and the point of this feature is that you want to treat them the same, each must have the same interface: if you have a &quot;has_role?&quot; method on your User, you will have to define &quot;has_role?&quot; on AnonymousUser, even if it just always returns &quot;false&quot;.</description>
		<content:encoded><![CDATA[<p>It&#8217;s worth nothing that this is definitely an intermediate to advanced Rails technique, and might be confusing if you don&#8217;t have a solid understanding of the framework already. The amount of background knowledge it would take to write this as a beginner tutorial would make it quite a long read.</p>
<p>That said, I may be able to shed some light on your specific scenario:</p>
<p>1) By changing via logic I mean that you can no longer check for something like &#8220;current_user.present?&#8221; to determine whether you have a user signed in, because by nature of what this feature does, there will always be a current_user present. Instead, you will have to determine whether it is an AnonymousUser or a User (the logged in kind), in my case, I include a convenience method, &#8220;anonymous?&#8221; on both of these classes which responds accordingly.</p>
<p>2) Because at any given time, a user may be a User or an AnonymousUser, and the point of this feature is that you want to treat them the same, each must have the same interface: if you have a &#8220;has_role?&#8221; method on your User, you will have to define &#8220;has_role?&#8221; on AnonymousUser, even if it just always returns &#8220;false&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Lazy User Registration for Rails Apps by Sam</title>
		<link>http://blog.bignerdranch.com/1679-lazy-user-registration-for-rails-apps/#comment-443468</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 19 Jun 2013 21:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bignerdranch.com/1679-lazy-user-registration-for-rails-apps/#comment-443468</guid>
		<description>It&#039;s a very nice feature but you don&#039;t go deep enough for beginner to understand.

By exemple you say : 
&quot;You’ll need to change a little view logic as well. For example, you’ll want to check something like current_user.anonymous? instead of present? to conditionally show your “Sign in” and “Sign up” links.&quot;

How would you implement it?

I Also had problem with things like : &quot;current_user.has_role? :admin&quot; in my views which where causing exception : undefined method &#039;where&#039; for nil:nilclass in the lib rolify (line 29).

I solved it by dropping the class AnonymousUser and using the class User instead...

Could you please elaborate a bit?


Thank you</description>
		<content:encoded><![CDATA[<p>It&#8217;s a very nice feature but you don&#8217;t go deep enough for beginner to understand.</p>
<p>By exemple you say :<br />
&#8220;You’ll need to change a little view logic as well. For example, you’ll want to check something like current_user.anonymous? instead of present? to conditionally show your “Sign in” and “Sign up” links.&#8221;</p>
<p>How would you implement it?</p>
<p>I Also had problem with things like : &#8220;current_user.has_role? :admin&#8221; in my views which where causing exception : undefined method &#8216;where&#8217; for nil:nilclass in the lib rolify (line 29).</p>
<p>I solved it by dropping the class AnonymousUser and using the class User instead&#8230;</p>
<p>Could you please elaborate a bit?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Empathy, thoughtfulness, and learning: Being an Intern at Big Nerd Ranch by Joseph Murphy</title>
		<link>http://blog.bignerdranch.com/3012-empathy-thoughtfulness-and-learning-interning-at-big-nerd-ranch/#comment-443446</link>
		<dc:creator>Joseph Murphy</dc:creator>
		<pubDate>Wed, 19 Jun 2013 20:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bignerdranch.com/?p=3012#comment-443446</guid>
		<description>Thanks, Jesse, and good luck on your work as well!</description>
		<content:encoded><![CDATA[<p>Thanks, Jesse, and good luck on your work as well!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Empathy, thoughtfulness, and learning: Being an Intern at Big Nerd Ranch by Jesse Black</title>
		<link>http://blog.bignerdranch.com/3012-empathy-thoughtfulness-and-learning-interning-at-big-nerd-ranch/#comment-443411</link>
		<dc:creator>Jesse Black</dc:creator>
		<pubDate>Wed, 19 Jun 2013 18:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bignerdranch.com/?p=3012#comment-443411</guid>
		<description>My sentiments as well (aside from not having worked/interned at BNR)

Congratulations on your quick entry into software development!</description>
		<content:encoded><![CDATA[<p>My sentiments as well (aside from not having worked/interned at BNR)</p>
<p>Congratulations on your quick entry into software development!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WWDC 2013: Focusing on the little things by Tasha Schroeder</title>
		<link>http://blog.bignerdranch.com/2984-wwdc-2013-focusing-on-the-little-things/#comment-442600</link>
		<dc:creator>Tasha Schroeder</dc:creator>
		<pubDate>Mon, 17 Jun 2013 18:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bignerdranch.com/?p=2984#comment-442600</guid>
		<description>Hi, Jason, there&#039;s no big hurry; not that much has changed under the hood.  We will need to rewrite the multitasking stuff, and we&#039;ll publish a new edition in a few months. Look for it in the fall!</description>
		<content:encoded><![CDATA[<p>Hi, Jason, there&#8217;s no big hurry; not that much has changed under the hood.  We will need to rewrite the multitasking stuff, and we&#8217;ll publish a new edition in a few months. Look for it in the fall!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hooked on DTrace, part 4 by Todd Barker</title>
		<link>http://blog.bignerdranch.com/2150-hooked-on-dtrace-part-4/#comment-442581</link>
		<dc:creator>Todd Barker</dc:creator>
		<pubDate>Mon, 17 Jun 2013 17:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bignerdranch.com/?p=2150#comment-442581</guid>
		<description>I can really see some good uses of Dtrace in combination with tne new Sprite Kit framework introduced at WWDC. There are a lot of instances when you want to monitor behaviour of your game or app.. and with probes there are plenty of opportunities to do this...</description>
		<content:encoded><![CDATA[<p>I can really see some good uses of Dtrace in combination with tne new Sprite Kit framework introduced at WWDC. There are a lot of instances when you want to monitor behaviour of your game or app.. and with probes there are plenty of opportunities to do this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WWDC 2013: Focusing on the little things by Jason</title>
		<link>http://blog.bignerdranch.com/2984-wwdc-2013-focusing-on-the-little-things/#comment-442365</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 17 Jun 2013 04:55:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bignerdranch.com/?p=2984#comment-442365</guid>
		<description>Is there an iOS7 programming book coming from BNR soon?</description>
		<content:encoded><![CDATA[<p>Is there an iOS7 programming book coming from BNR soon?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cocoa Got Blocks by Todd Barker</title>
		<link>http://blog.bignerdranch.com/3001-cocoa-got-blocks/#comment-442213</link>
		<dc:creator>Todd Barker</dc:creator>
		<pubDate>Sun, 16 Jun 2013 20:06:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bignerdranch.com/?p=3001#comment-442213</guid>
		<description>Makes me want to &quot;drop, pop, and BLOCK it&quot; ! Way to go guys!!</description>
		<content:encoded><![CDATA[<p>Makes me want to &#8220;drop, pop, and BLOCK it&#8221; ! Way to go guys!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cocoa Got Blocks by Marc Respass</title>
		<link>http://blog.bignerdranch.com/3001-cocoa-got-blocks/#comment-441255</link>
		<dc:creator>Marc Respass</dc:creator>
		<pubDate>Fri, 14 Jun 2013 15:31:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bignerdranch.com/?p=3001#comment-441255</guid>
		<description>Wow! That was awesome. That song will never die and I&#039;m glad there is now a nerd version. Great job :)</description>
		<content:encoded><![CDATA[<p>Wow! That was awesome. That song will never die and I&#8217;m glad there is now a nerd version. Great job <img src='http://blog.bignerdranch.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cocoa Got Blocks by Christopher Lloyd</title>
		<link>http://blog.bignerdranch.com/3001-cocoa-got-blocks/#comment-441249</link>
		<dc:creator>Christopher Lloyd</dc:creator>
		<pubDate>Fri, 14 Jun 2013 15:22:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bignerdranch.com/?p=3001#comment-441249</guid>
		<description>Outrageous! Love it!</description>
		<content:encoded><![CDATA[<p>Outrageous! Love it!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
