search for: client_status

Displaying 2 results from an estimated 2 matches for "client_status".

2006 Dec 15
5
Testing event driven Socket classes
...ket connection. Please look in the code, carefully. most of the methods in class are actually callbacks, which respond to certain events. Is it possible to unit test this with Mocha? require "eventmachine" class TickServer < EventMachine::Connection attr_accessor :chunked_data,:client_status def valid_protocol? data return false unless data =~ /(\d{3})([^<>]*)<([^><]*)>##(.*?)##/ return true end # method is a callback, gets called whenever data is there in socket to read def receive_data data data.chomp! while data && data.length >...
2006 Aug 02
3
find_by_column_name and for loop returns undef method `each''
I''m trying to understand how to select only certain rows in my database using RoR. As a test I try to find certain clients by adding this code in my list view... <% clientlist = Client.find_by_client_status_id(1) %> <% if clientlist %> <= This prevents me from getting nil errors. <% for client in clientlist %> <= This seems to try and call ''each'' method. ... <tr> and <td> data display ... <% end %> <% end %> My clients table has a...