I still feel stupid--where is the generate script documented? posted by...
Brian,You may want to look at the Advanced Rails Recipes book. As I am beginning to program in Rails professionally, I find myself turning more frequently to the Rails Way, Advanced Rails Recipes, and...
View ArticleNot sure how to interpret this? posted by Bharat Ruparel @ Fri, 01 Aug 2008...
Thanks Jim. I am reading it now. I found the following post by Ola Bini to be particularly helpful. Before David’s screencasts, I could not really understand posts similar to these, I think I do now...
View ArticleNot sure how to interpret this? posted by Bharat Ruparel @ Sat, 26 Jul 2008...
And this is on Memoization:http://ryandaigle.com/articles/2008/7/16/what-s-new-in-edge-rails-memoizationSounds familiar?
View ArticleNot sure how to interpret this? posted by Bharat Ruparel @ Tue, 22 Jul 2008...
Thanks. So essentially it becomes a class method of Object (and inheriting classes) which returns the metaclass ‘class’ (or the ghost class) of type class?Check this...
View ArticleNot sure how to interpret this? posted by Bharat Ruparel @ Tue, 22 Jul 2008...
David,I am maintaining a Rails App that is using backgroundDrb. It creates a helper file called dbrb_test_helper.rb in the test directory. Amongst other things, it has the following piece of code that...
View ArticleEpisode 2 - class
Thanks for the tip:I tried it, and it prints:BharatNext, to see how it differs when you defined a method in it and inlcude it in a class, I created the following test scenario: module Bharat p self def...
View ArticleEpisode 2 - class
Thanks. I am finding that I have to go back and review the episodes multiple times to get a better understanding of the concepts. Every time I do that, I take a few steps forward, but sometimes, it is...
View ArticleEpisode 2 - class
Hello David,You have this nice example of recommended use of class << self as follows: class Dave @count = 0 class << self attr_accessor :count end def initialize() Dave.count += 1 end end...
View ArticleExample 9 from Episode 5 posted by Bharat Ruparel @ Fri, 27 Jun 2008 23:54:11...
Hello Tony,I am not sure what the answer is to your question because I cannot run the program with your module definition above. May be you have made more changes in the program below where remember...
View ArticleEdisode 5 - Example 1 to Example 9 posted by Bharat Ruparel @ Fri, 27 Jun...
First, some feedback. This is excellent. I am posting below my ruby newbie critique for each and hope to get your feedback. Your were understandably more reserved in offering your preferences since you...
View Articleinclude private? posted by Bharat Ruparel @ Thu, 26 Jun 2008 20:11:27 +0000
Thanks for the quick reply. I understand what you are saying in the screen cast now.I am referring to episode 4 – use 3: it seems to me that this kind of use of include as shown in the code snippet...
View Articleinclude private? posted by Bharat Ruparel @ Wed, 25 Jun 2008 22:23:35 +0000
David,You keep saying that include is a private method throughout the screencssts (specifically episode 4 towards the end in the class_eval section). May be it is obvious, but I don’t get it. How can...
View ArticleEpisode 3 - my_attr_accessor exercise posted by Bharat Ruparel @ Wed, 25 Jun...
It seems like the code does not contain a solution to this exercise. I am taking the liberty of posting the snippet of solution as I understood your question for the purpose of...
View ArticleScreencast on Meta Programming versus Programming Ruby posted by Bharat...
Just went through all the five episodes.Well done.An edisode or two by one of your experts on irb/rails console power use would be very useful to me.Regards,Bharat
View ArticleScreencast on Meta Programming versus Programming Ruby posted by Bharat...
Hello David,I see that you have expanded the meta-programming chapter significantly in the third Edition. Also, you have released a screencast as well.My question relates to Metaprogramming – I have...
View ArticleChapter 17: Builder posted by Bharat Ruparel @ Tue, 10 Jun 2008 01:26:29 +0000
Thanks Christophe. How do you know this? Just by trial and error or is there a method to this madness which they call Internet Explorer?
View ArticlePraise and suggestion posted by Bharat Ruparel @ Mon, 09 Jun 2008 17:34:33 +0000
Hello Matt,I can see where you are coming from. Like you, I am an experienced Java programmer, and have dabbled in Ruby for awhile. The Javascript/Prototype syntax does take some getting used to.To get...
View ArticleChapter 17: Builder posted by Bharat Ruparel @ Sun, 08 Jun 2008 21:50:56 +0000
Hello Christophe,The example scripts in your code do not work in Internet Explorer 7. They work fine in Firefox on my Windows XP machine. Do you know what might be the problem? Just try loading your...
View ArticleChapter 16 - AutoCompletion posted by Bharat Ruparel @ Sat, 07 Jun 2008...
Hello Christophe,Took a detour into Advanced Rails Recipes and Deploying Rails Applications and am back into your book. The auto-completion chapter has excellent examples as usual.On page 333 of the...
View ArticleWelcome posted by Bharat Ruparel @ Sat, 07 Jun 2008 17:34:19 +0000
What I would love to see and pay $10.00 for gladly is how to be the power user of Rails Console. If you can produce a couple of in depth screen-casts on that topic, it would be great.Also, I had asked...
View Article