ugh damnit. I'm trying to find all Devices of a certain type. That type is referred to as Device.product, which is a lookup from another table. We want to match all part_numbers with a certain string in them. Device.where(:product =~ /IQ6/).last.product ...does not give me "IQ6". It seems the where filters out nothing and I can put almost any garbage in there and get back the full Device list
I've had a hell of journey with ruby and ssh but a lot of it was with crappy libraries back in 1.8.7 era. 2.0 era seems to be doing ok. I'm not sure what version my server is sitting on right now, it's nothing super recent :\
nice. I'd like to be up to date but just moving out of 1.8.7 to 2.0 was such a big deal, esp around ssh type things. the libraries got drastically better but the calls also worked differently. Ended up having to touch dozens of scripts
"Note much of the advice that follows is now outdated due to the magnificent efforts of the RubyInstaller team in bringing stability, compatibility and performance to Ruby on Windows"