I am using activerecord and find_by_sql to output the results of the sql query:
S = Object.find_by_sql("SELECT * FROM foo")
S.each do |s|
puts "#{s}"
end
I get
#<Object:0x0000010214d5e0>
#<Object:0x0000010214ce60>
etc...
I need the actual results.
Thanks in advance
Mark
There is no
to_smethod for that object. You can tryputs s.inspectorp sinstead