search for: say_hi

Displaying 3 results from an estimated 3 matches for "say_hi".

Did you mean: sarthi
2006 Oct 01
9
How to create a very simple form
...ple form with RoR similar to this one in ASP.Net: http://quickstarts.asp.net/QuickStartv20/aspnet/samples/ctrlref/standard/TextBox/TextBox1_vb.aspx I my RoR project I want to add a Greeter class like this one: class Greeter def initialize(name = "World") @name = name end def say_hi puts "Hi #{@name}!" end def say_bye puts "Bye #{@name}, come back soon." end end my form will have two buttons one for "Hi!" and the other for "Bye!", a text box to enter a name, and a label to display the whole message. So if the user e...
2006 Mar 07
3
STI and unit testing
...the only file I''m running is bar_test.rb - here''s the output: C:\WINDOWS\system32\cmd.exe /c ruby bar_test.rb Loaded suite bar_test Started .Bar .Foo . Finished in 0.109 seconds. 3 tests, 3 assertions, 0 failures, 0 errors shouldn''t BarTest only have two tests? test_say_hi() which is inherited from FooTest and test_say_hello(), I don''t understand why the parent test case is also being run. Can anyone shed some light on this please? thanks in advance alan code (also pasted to http://www.pasteserver.net/paste/show/152): 1 # model Foo, created using gen...
2007 Mar 06
59
Memory leaks in my site
Hi all, My environment is ruby-1.8.4, rails 1.2.2, mongrel 1.0.1, linux 2.6. Now, i have a problem on memory leaks with mongrel. My site is running 5 mongrel processes on a 2G RAM machine, the memory of each process grows from about 20M to about 250M, but it never recover to the initial 20M, so i had to restart the mongrel processes once per day. The load is about 1M hits per day. Waiting for