<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Depot Iteration D1 issues' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/66/topics/434</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Depot Iteration D1 issues posted by Jamie Paulson @ Fri, 16 May 2008 21:33:48 -0000</title>
      <description>&lt;p&gt;Thanks for the response, Sam&amp;#8230;but I think the book text is actually correct (it actually states that we can just use &amp;#8220;cart&amp;#8221; w/o the &amp;#8221;@&amp;#8221;)...this is purely user error.&lt;/p&gt;


	&lt;p&gt;Working out of a &lt;span class="caps"&gt;PDF&lt;/span&gt; book apparently presents my brain some challenges in being able to read carefully.  :-)&lt;/p&gt;</description>
      <pubDate>Fri, 16 May 2008 21:33:48 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:434:2820</guid>
      <author>Jamie Paulson</author>
      <link>http://forums.pragprog.com/forums/66/topics/434</link>
    </item>
    <item>
      <title>Depot Iteration D1 issues posted by Sam Ruby @ Thu, 15 May 2008 23:48:45 -0000</title>
      <description>&lt;p&gt;Line 5 looks like it might be missing an @ sign before cart.items.  See &lt;a href="http://media.pragprog.com/titles/rails3/code/depot_j/app/views/store/add_to_cart.html.erb"&gt;_cart.html.erb&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 15 May 2008 23:48:45 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:434:2814</guid>
      <author>Sam Ruby</author>
      <link>http://forums.pragprog.com/forums/66/topics/434</link>
    </item>
    <item>
      <title>Depot Iteration D1 issues posted by Jamie Paulson @ Thu, 15 May 2008 23:45:15 -0000</title>
      <description>&lt;p&gt;Hey remember the time I said I was staying tight to the book?  Yeah, I was lying&amp;#8230;  Missed the changes to the store_controller.rb.&lt;/p&gt;


	&lt;p&gt;Disregard my post.  Unless you want to make fun of the newbie now.&lt;/p&gt;</description>
      <pubDate>Thu, 15 May 2008 23:45:15 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:434:2813</guid>
      <author>Jamie Paulson</author>
      <link>http://forums.pragprog.com/forums/66/topics/434</link>
    </item>
    <item>
      <title>Depot Iteration D1 issues posted by Jamie Paulson @ Thu, 15 May 2008 23:40:43 -0000</title>
      <description>&lt;p&gt;So I&amp;#8217;m running into some issues in the B1.1 edition&amp;#8230;after making modifications to move the cart to the sidebar using partial templates (p 126), I get the following mess when I hit the store page:&lt;/p&gt;


	&lt;p&gt;================&lt;br /&gt;NoMethodError in Store#index&lt;/p&gt;


	&lt;p&gt;Showing store/_cart.html.erb where line #5 raised:&lt;/p&gt;


	&lt;p&gt;You have a nil object when you didn&amp;#8217;t expect it!&lt;br /&gt;The error occurred while evaluating nil.items&lt;/p&gt;


	&lt;p&gt;Extracted source (around line #5):&lt;/p&gt;


	&lt;p&gt;2:     Your Cart&lt;br /&gt;3: &lt;/div&gt;&lt;br /&gt;4: &amp;lt;table&gt;&lt;br /&gt;5:     &amp;lt;%= render(:partial =&amp;gt; &amp;#8220;cart_item&amp;#8221;, :collection =&amp;gt; cart.items) %&amp;gt;&lt;br /&gt;6:     &amp;lt;tr class="total-line"&gt;&lt;br /&gt;7:         &amp;lt;td colspan="2"&gt;&lt;br /&gt;8:             Total&lt;/p&gt;


	&lt;p&gt;Trace of template inclusion: /layouts/store.html.erb&lt;br /&gt;===================&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m staying pretty tight to the book (I think), so I&amp;#8217;m kind of dumbfounded to hit an error.  But it looks like maybe the store.html.erb doesn&amp;#8217;t have an instance of @cart so is passing in nil.  Maybe?&lt;/p&gt;


	&lt;p&gt;Still a newbie here so go easy on me&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Thu, 15 May 2008 23:40:43 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:66:434:2812</guid>
      <author>Jamie Paulson</author>
      <link>http://forums.pragprog.com/forums/66/topics/434</link>
    </item>
  </channel>
</rss>
