<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for xtine78</title><link>http://disqus.com/people/xtine78/</link><description></description><language>en</language><lastBuildDate>Sat, 03 Jan 2009 12:14:38 -0000</lastBuildDate><item><title>Re: Final Project: Tips for the Writeup and Features</title><link>http://e168f08.disqus.com/final_project_tips_for_the_writeup_and_features/#comment-4867072</link><description>There are a lot of things you could do:&lt;br&gt;&lt;br&gt;-- Delete from the console. E.g., Thing.delete(1)   # where 1 is the id of the Thing you want to delete. Remember the difference between delete and destroy from lecture -- destroy uses the callbacks, so if there are dependent objects, they will get deleted, too.&lt;br&gt;&lt;br&gt;-- Play around with your app, then delete the development database (in db/development.sqlite3) then re-run your migrations. This is the cleanest way.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Sat, 03 Jan 2009 12:14:38 -0000</pubDate></item><item><title>Re: Final Project: Tips for the Writeup and Features</title><link>http://e168f08.disqus.com/final_project_tips_for_the_writeup_and_features/#comment-4867004</link><description>Let's say I've entered in some data into my application that I would like to delete without using my application for debugging purposes.  What's the best way to delete data I've entered from the database?  The console?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xtine78</dc:creator><pubDate>Sat, 03 Jan 2009 12:04:33 -0000</pubDate></item><item><title>Re: Screencasts</title><link>http://e168f08.disqus.com/screencasts/#comment-4817056</link><description>The flash messages are not showing up on either the standard or pages I've created.  I have verified that the following is included in my code:&lt;br&gt;&lt;br&gt;&amp;lt;% if flash[:notice] %&amp;gt;&lt;br&gt;&amp;lt;div id="notice"&amp;gt;&amp;lt;%= flash[:notice] %&amp;gt;&amp;lt;/div&amp;gt;&lt;br&gt;&amp;lt;% end %&amp;gt;&lt;br&gt;&lt;br&gt;[edit]&lt;br&gt;&lt;br&gt;which is pointless if your div doesn't match and if you also haven't put in code for flash[:error]!  NEVERMIND!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xtine78</dc:creator><pubDate>Thu, 01 Jan 2009 16:48:31 -0000</pubDate></item><item><title>Re: Screencasts</title><link>http://e168f08.disqus.com/screencasts/#comment-4813990</link><description>Such as?&lt;br&gt;&lt;br&gt;-- which message?&lt;br&gt;-- Are you trying to display it on a page you created, or one of the standard ones?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Thu, 01 Jan 2009 10:38:46 -0000</pubDate></item><item><title>Re: Screencasts</title><link>http://e168f08.disqus.com/screencasts/#comment-4810634</link><description>Has anyone else had any problems with the flash messages using the restful authentication plugin?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xtine78</dc:creator><pubDate>Wed, 31 Dec 2008 23:14:33 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.disqus.com/assignment_3_milestone_iii/#comment-4225015</link><description>Cool.&lt;br&gt;&lt;br&gt;The short answer is that when you put [] after an attribute name, Rails will magically take each check and assign "true" to the array element for the check id.&lt;br&gt;&lt;br&gt;It's totally non-obvious, which is why I discussed it in lecture, and recommended that people look at the ChildCare Co-Op code.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Sat, 06 Dec 2008 12:33:40 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.disqus.com/assignment_3_milestone_iii/#comment-4223133</link><description>I do have it implemented and working (not exactly as written above of course).  I will do some more research to make sure I understand how its working.  In the end, its probably my update method that isn't handling the information correctly.&lt;br&gt;&lt;br&gt;Thanks!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xtine78</dc:creator><pubDate>Sat, 06 Dec 2008 10:36:33 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.disqus.com/assignment_3_milestone_iii/#comment-4222987</link><description>I discussed it at some length in one of the lectures, and said things like "you will need to understand this for Assignment 3."&lt;br&gt;&lt;br&gt;The checkbox technique is also used in ChildCare Co-Op. Please review those materials.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Sat, 06 Dec 2008 10:15:59 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.disqus.com/assignment_3_milestone_iii/#comment-4222839</link><description>&amp;lt;%= check_box_tag (:observation_ids[], "#{obs.id}") %&amp;gt;&lt;br&gt;&lt;br&gt;How does this line work?  :observation_ids[] isn't something I have seen in my code.  Is this meant to gather the observation.id into an array?  I gather that the obs.id will send the obs.id to the update method so that an observation can be deleted.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xtine78</dc:creator><pubDate>Sat, 06 Dec 2008 09:57:09 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.disqus.com/assignment_3_milestone_iii/#comment-4211589</link><description>Good - you should review your code carefully, though, 'cos it sounds like you got some bad data in there.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Fri, 05 Dec 2008 17:19:12 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.disqus.com/assignment_3_milestone_iii/#comment-4211328</link><description>I ran migrations back and its working better.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xtine78</dc:creator><pubDate>Fri, 05 Dec 2008 17:05:41 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.disqus.com/assignment_3_milestone_iii/#comment-4209121</link><description>For all units? It may be that you added a unit with a null for the measurement . . . i.e., a bug in your code?&lt;br&gt;&lt;br&gt;You should be able to do:&lt;br&gt;&lt;br&gt;Unit.find(:all).each { |u| puts u.measurement.name }&lt;br&gt;&lt;br&gt;I.e., iterate through all of your units, and see if any break on the following of the measurement association.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Fri, 05 Dec 2008 15:14:52 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.disqus.com/assignment_3_milestone_iii/#comment-4208873</link><description>I got a result in the console.  I wonder what I've done to break the relationship in my controller so that the this code doesn't execute in the view.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xtine78</dc:creator><pubDate>Fri, 05 Dec 2008 15:02:42 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.disqus.com/assignment_3_milestone_iii/#comment-4208588</link><description>Could you double-check that from the console for a unit that we created in the original migrations? E.g.,&lt;br&gt;&lt;br&gt;ruby script/console&lt;br&gt;Unit.find(:all).first.measurement.name</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Fri, 05 Dec 2008 14:48:51 -0000</pubDate></item><item><title>Re: Assignment 3, Milestone III</title><link>http://e168f08.disqus.com/assignment_3_milestone_iii/#comment-4208410</link><description>observation_kind and unit have the same relationship to measurements right?&lt;br&gt;&lt;br&gt;For an observation kind I can say something like observation_kind.measurement.name because all the methods are made available to the observation_kind through the measurement relationship.&lt;br&gt;&lt;br&gt;Should I also be able to use the same relationship with units?  For example unit.measurement.name?  When I do this from the unit's index view the measurement is nil.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xtine78</dc:creator><pubDate>Fri, 05 Dec 2008 14:38:38 -0000</pubDate></item><item><title>Re: Assignment 2</title><link>http://e168f08.disqus.com/assignment_2/#comment-3161595</link><description>I know!  I can't call @hand.thismethod and have that method call @hand.method1!  I just call method1.  Thanks for looking!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xtine78</dc:creator><pubDate>Sun, 19 Oct 2008 17:58:45 -0000</pubDate></item><item><title>Re: Assignment 2</title><link>http://e168f08.disqus.com/assignment_2/#comment-3161439</link><description>What you have posted has this line:&lt;br&gt;&lt;br&gt;@hand.method1()&lt;br&gt;&lt;br&gt;Does @hand have a method called "method1" on it?&lt;br&gt;&lt;br&gt;The error message (did you read it?) says: undefined method `method1' for []:Array&lt;br&gt;&lt;br&gt;So it would seem that when @hand.method1() is executed, @hand is an Array, perhaps; is it? You can find out what class it is before this statement is run by adding:&lt;br&gt;&lt;br&gt;puts @hand.class&lt;br&gt;&lt;br&gt;John</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xertroyt</dc:creator><pubDate>Sun, 19 Oct 2008 17:39:24 -0000</pubDate></item><item><title>Re: Assignment 2</title><link>http://e168f08.disqus.com/assignment_2/#comment-3161112</link><description>Here is an error I cannot resolve.&lt;br&gt;&lt;br&gt;The error is:&lt;br&gt;NoMethodError: undefined method `method1' for []:Array&lt;br&gt;&lt;br&gt;I get the error when I run the case statement.  Any idea what's happening?&lt;br&gt;&lt;br&gt;def thismethod()&lt;br&gt;    myvariable =  case &lt;br&gt;          when @hand.method1() == true&lt;br&gt;             something&lt;br&gt;          when @hand.method2() == true&lt;br&gt;             something!&lt;br&gt;          else&lt;br&gt;            nothing&lt;br&gt;          end&lt;br&gt;  end</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">xtine78</dc:creator><pubDate>Sun, 19 Oct 2008 17:01:30 -0000</pubDate></item></channel></rss>