<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for trung</title><link>http://disqus.com/by/trung/</link><description></description><atom:link href="http://disqus.com/trung/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 08 Nov 2007 23:13:44 -0000</lastBuildDate><item><title>Re: Assignment 4; due Nov. 11</title><link>http://e168f07.7fff.com/assignments/assignment-4/#comment-10212</link><description>&lt;p&gt;-- 1. The default value for a boolean is false. --&lt;/p&gt;&lt;p&gt;I did "u = User.create(:email =&amp;gt; 'abc@aol.com')" and then went into my test database and see that 'subscriber' is NULL.  Doing a find on only ":subscriber =&amp;gt; nil" would return the correct data.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trung</dc:creator><pubDate>Thu, 08 Nov 2007 23:13:44 -0000</pubDate></item><item><title>Re: Assignment 4; due Nov. 11</title><link>http://e168f07.7fff.com/assignments/assignment-4/#comment-10204</link><description>&lt;p&gt;John,&lt;/p&gt;&lt;p&gt;So a User with 'subscriber=false' is like a guest account, and a User with 'subscriber=true' is a real 'user' ?&lt;/p&gt;&lt;p&gt;So: &lt;br&gt;1. Do we need to set a default, 'false,' value for the attribute 'subscriber'?&lt;br&gt;2. Do we also need to set 'validates_xx' rules for some of the obvious (but not tested) attributes?  As of now, 'rake test:units' works fine for me, but I remember you mentioned that our projects will be graded more subjectively while your unit tests will be less rigorous.&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trung</dc:creator><pubDate>Thu, 08 Nov 2007 22:54:20 -0000</pubDate></item><item><title>Re: Assignment 4; due Nov. 11</title><link>http://e168f07.7fff.com/assignments/assignment-4/#comment-10197</link><description>&lt;p&gt;Hi, I am trying to run 'script/console' with the fixtures loaded correctly.  I'm running it by issuing:&lt;/p&gt;&lt;p&gt;1. rake db:fixtures:load RAILS_ENV=test&lt;br&gt;2. script/console test&lt;/p&gt;&lt;p&gt;The fixtures are loaded.  However, the value 'children_count' for 'User' is not updated as it should be.  For instance, the user "John Norman" (User whose id is 1) definitely has a child (Child whose id is 1) but its 'children_count' value is 0.  If I try to create a new Child with 'user_id' as 1, then 'children_count' is updated correctly.&lt;/p&gt;&lt;p&gt;Is there a way to load the fixtures so that the 'children_count' attribute contains the correct value?&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trung</dc:creator><pubDate>Thu, 08 Nov 2007 22:41:45 -0000</pubDate></item><item><title>Re: Assignment 4; due Nov. 11</title><link>http://e168f07.7fff.com/assignments/assignment-4/#comment-10192</link><description>&lt;p&gt;bchin,&lt;/p&gt;&lt;p&gt;I noticed that.  My question is regarding the meaning of it.&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trung</dc:creator><pubDate>Thu, 08 Nov 2007 22:16:52 -0000</pubDate></item><item><title>Re: Assignment 4; due Nov. 11</title><link>http://e168f07.7fff.com/assignments/assignment-4/#comment-10182</link><description>&lt;p&gt;In 'finders.rb,' there are a few methods that ask for 'subscribers.'  I'm not totally understand what it means for a user to be a subscriber.  Can someone points out the obvious to me?&lt;/p&gt;&lt;p&gt;Thank you!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trung</dc:creator><pubDate>Thu, 08 Nov 2007 21:48:04 -0000</pubDate></item><item><title>Re: Assignment 4; due Nov. 11</title><link>http://e168f07.7fff.com/assignments/assignment-4/#comment-8719</link><description>&lt;p&gt;I have recently rebuilt my system and re-installed Rails.  The new Rails version is 1.2.5.  The file "config/environment.rb" for the assignment defined RAILS_GEM_VERSION as 1.2.3.  I cannot run rake for the assignment with my current Rails version.  So, is it okay for me to change RAILS_GEM_VERSION to 1.2.5 or must/should I reinstall Rails with specific version 1.2.3?&lt;/p&gt;&lt;p&gt;P.S. Changing RAILS_GEM_VERSION works fine, but I'm not sure if it will affect grading or not.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trung</dc:creator><pubDate>Mon, 05 Nov 2007 20:26:48 -0000</pubDate></item></channel></rss>