Trying to get a grasp on how ruby works with data, so used to perl.
Here is what im trying to do in my app/models scrap.rb
all = MyDb.find_all_by_server_name('myserver', :limit => 1) puts all # all i get back here is the address <MyDb:0x9c56058> puts all # i want element 1 but i get "nil"
I have a single table that has a server_name field and it has data in
Just trying to see how i capture the elements of a row one by one and
access them. From the irb i know can say find :all and it returns the
row but i how do pick this data and assign the values to a usable