Print pretty results from Mysql::Result

Is there a easier way to output the contents of a Mysql::Result than
this command?

ActiveRecord::Base.connection.select_all(“show variables”).each {|r|
puts r[‘Variable_name’] + ": " + r[‘Value’] + “\n”}; nil


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs