<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pivotal Labs &#187; Danny Gagne</title>
	<atom:link href="http://pivotallabs.com/author/dgagne/feed/" rel="self" type="application/rss+xml" />
	<link>http://pivotallabs.com</link>
	<description>Agility Developed</description>
	<lastBuildDate>Fri, 24 May 2013 05:20:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>[Standup][NY]09/11/12: CanCan condition hashes)</title>
		<link>http://pivotallabs.com/standup-ny-09-11-12-cancan-condition-hashes/</link>
		<comments>http://pivotallabs.com/standup-ny-09-11-12-cancan-condition-hashes/#comments</comments>
		<pubDate>Tue, 11 Sep 2012 14:31:00 +0000</pubDate>
		<dc:creator>Danny Gagne</dc:creator>
				<category><![CDATA[Standup]]></category>
		<category><![CDATA[agile]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-ny-09-11-12-cancan-condition-hashes/</guid>
		<description><![CDATA[<p><h2>Interestings</h2>

<ul>
<li>CanCan, condition hashes, and index actions</li>
</ul>

<p>If you have something like:</p>

<p>`<code>can :manage, Group, memberships: { user_id: user.id }</code>`</p>

<p>and:</p>

<p>`<code>class Group &#60; AR::Base
  has_many memberships
end</code>`</p>

<p>you will get duplicate Groups in index action's @groups ivar when you load_and_authorize &#40;sic&#41; :group as CanCan will do an SQL join of the groups and memberships table.</p>

<p>The solution for us was to use a block and populate the @groups ivar ourselves in the action.</p>

<h2>Events</h2>

<ul>
<li>Tuesday: NYC.rb Presentation Night
<a href="http://www.meetup.com/NYC-rb/">http://www.meetup.com/NYC-rb/</a></li>
</ul>

<p>Founded in 2004, NYC.rb is the place for experienced Ruby and Rails programmers in New York City.
MEETUPS
We meet on the second and fourth Tuesdays of the month. Second Tuesdays are for one or more talks, and fourth Tuesdays are just hackfests, where people bring their laptops and hang out.</p> <a href="http://pivotallabs.com/standup-ny-09-11-12-cancan-condition-hashes/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-ny-09-11-12-cancan-condition-hashes/">[Standup][NY]09/11/12: CanCan condition hashes)</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interestings</h2>
<ul>
<li>CanCan, condition hashes, and index actions</li>
</ul>
<p>If you have something like:</p>
<p>`<code>can :manage, Group, memberships: { user_id: user.id }</code>`</p>
<p>and:</p>
<p>`<code>class Group &lt; AR::Base<br />
  has_many memberships<br />
end</code>`</p>
<p>you will get duplicate Groups in index action&#8217;s @groups ivar when you load_and_authorize &#40;sic&#41; :group as CanCan will do an SQL join of the groups and memberships table.</p>
<p>The solution for us was to use a block and populate the @groups ivar ourselves in the action.</p>
<h2>Events</h2>
<ul>
<li>Tuesday: NYC.rb Presentation Night<br />
<a href="http://www.meetup.com/NYC-rb/">http://www.meetup.com/NYC-rb/</a></li>
</ul>
<p>Founded in 2004, NYC.rb is the place for experienced Ruby and Rails programmers in New York City.<br />
MEETUPS<br />
We meet on the second and fourth Tuesdays of the month. Second Tuesdays are for one or more talks, and fourth Tuesdays are just hackfests, where people bring their laptops and hang out.</p>
<p>The post <a href="http://pivotallabs.com/standup-ny-09-11-12-cancan-condition-hashes/">[Standup][NY]09/11/12: CanCan condition hashes)</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-ny-09-11-12-cancan-condition-hashes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Standup][NY] 9/10/12: Debugging CoffeeScript in Chrome</title>
		<link>http://pivotallabs.com/standup-ny-9-10-12-debugging-coffeescript-in-chrome/</link>
		<comments>http://pivotallabs.com/standup-ny-9-10-12-debugging-coffeescript-in-chrome/#comments</comments>
		<pubDate>Mon, 10 Sep 2012 19:21:00 +0000</pubDate>
		<dc:creator>Danny Gagne</dc:creator>
				<category><![CDATA[Standup]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[coffeescript]]></category>

		<guid isPermaLink="false">http://pivotallabs.com/standup-ny-9-10-12-debugging-coffeescript-in-chrome/</guid>
		<description><![CDATA[<p><h2>Interestings</h2>

<p>Debugging CoffeeScript in Chrome</p>

<p>When you go to “Sources” in web inspector for a web page that includes test.js it will now show your CoffeeScript source files where you can set break points, hover variables to see their values, etc.</p>

<p><a href="http://ryanflorence.com/2012/coffeescript-source-maps/">http://ryanflorence.com/2012/coffeescript-source-maps/</a></p>

<h2>Events</h2>

<ul>
<li>Monday: CTO School</li>
<li>Tuesday: NYC.rb Presentation Night <a href="http://www.meetup.com/NYC-rb/">http://www.meetup.com/NYC-rb/</a></li>
</ul> <a href="http://pivotallabs.com/standup-ny-9-10-12-debugging-coffeescript-in-chrome/">Continue reading <span class="meta-nav">&#8594;</span></a></p><p>The post <a href="http://pivotallabs.com/standup-ny-9-10-12-debugging-coffeescript-in-chrome/">[Standup][NY] 9/10/12: Debugging CoffeeScript in Chrome</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></description>
				<content:encoded><![CDATA[<h2>Interestings</h2>
<p>Debugging CoffeeScript in Chrome</p>
<p>When you go to “Sources” in web inspector for a web page that includes test.js it will now show your CoffeeScript source files where you can set break points, hover variables to see their values, etc.</p>
<p><a href="http://ryanflorence.com/2012/coffeescript-source-maps/">http://ryanflorence.com/2012/coffeescript-source-maps/</a></p>
<h2>Events</h2>
<ul>
<li>Monday: CTO School</li>
<li>Tuesday: NYC.rb Presentation Night <a href="http://www.meetup.com/NYC-rb/">http://www.meetup.com/NYC-rb/</a></li>
</ul>
<p>The post <a href="http://pivotallabs.com/standup-ny-9-10-12-debugging-coffeescript-in-chrome/">[Standup][NY] 9/10/12: Debugging CoffeeScript in Chrome</a> appeared first on <a href="http://pivotallabs.com">Pivotal Labs</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pivotallabs.com/standup-ny-9-10-12-debugging-coffeescript-in-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using apc
Database Caching using apc
Object Caching 477/504 objects using apc

 Served from: pivotallabs.com @ 2013-05-24 05:06:36 by W3 Total Cache -->