search for: show_client

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

Did you mean: show_clients
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
2010 May 31
0
TCPSocket.new(host,port).readline hangs on windows :(
Hi Guys I am starting a new thread as it seems my gripe isnt to do with Juggernaut but with TCPSocket - which is used by Juggernaut. Turns out that the thing that actually hangs up in Juggernaut after x (130/1500/16000) iterations of (1..1000).each {|i| Juggernaut.show_clients} Is actually the line res << @socket.readline(CR) if response in juggernaut.rb. Seems @socket.readline behaves nicely when there is something to read, but fails miserably with a hangup when there isnt. Even a socket to my pop mailserver fails: @socket = TCPSocket.new (mailserver,110) @s...