<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Pragmatic Forums | Posts in topic 'AWDWR Iteration C2 / sessions:clear'</title>
    <link>/forums/22/topics/2408.rss</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>AWDWR Iteration C2 / sessions:clear posted by jeff davidson @ Sat, 04 Apr 2009 16:02:26 +0000</title>
      <description>&lt;p&gt;Hi-&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m working my way through awdwr and am on page 102, iteration C2.   As noted in the book, when I made the change to add CartItems, I got the error that starts with:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;NoMethodError in StoreController#add_to_cart.....&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;The book says to issue:&lt;/p&gt;


&lt;blockquote&gt;
	&lt;p&gt;rake db:sessions:clear&lt;/p&gt;

&lt;/blockquote&gt;




	&lt;p&gt;This did not clear my sessions, however, when I used:&lt;/p&gt;


&lt;blockquote&gt;
	&lt;p&gt;rake tmp:sessions:clear&lt;/p&gt;

&lt;/blockquote&gt;




	&lt;p&gt;it worked!  Using MySQL Query Browser to look at the session table, I see that no data is ever being written to the db.  Am I doing something wrong here?  Why is session data not being written to the database?  What is a &amp;#8216;tmp&amp;#8217; session?&lt;/p&gt;


	&lt;p&gt;Thanks!&lt;/p&gt;


	&lt;p&gt;Jeff&lt;/p&gt;</description>
      <pubDate>Sat, 04 Apr 2009 16:02:26 +0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:22:2408:9523</guid>
      <author>jeff davidson</author>
      <link>http://forums.pragprog.com/forums/22/topics/2408</link>
    </item>
  </channel>
</rss>
