I have this:
begin
sage = Net::Telnet::new( ''Host'' => sage_unit,
''Prompt'' => /\>/
)
rescue TimeoutError
fail "Connection timed out, waiting to reconnect."
end
It outputs the text but also it gives the links for stack trace and
stuff. Is there a way to just get the text back and that is all?? I
do not want errors to consume the whole page just a small text field.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---