From: aix aix Date: 2011-05-24T18:30:04+09:00 Subject: Ruby and ActiveRecord : Reading informations Hello, So now, before I use the DBI module to communicate with my MySQL database. Now, I turn to ActiveRecord. I'll be home I connect, do queries, etc. However, recovery / reading information is unclear. Here is my code: require 'rubygems' require 'active_record' ActiveRecord::Base.establish_connection( :adapter => 'mysql', :host => 'localhost', :username => 'root', :password => 'toor', :database => 'demo' ) class Type_service < ActiveRecord::Base end all = Type_service.exists?() puts "table type_services exist ? \n #{all}" type = Type_service.find(:all) puts "table elements : #{type}\n\n\n" p type And the result : table type_services exist ? true table elements: ## [#, #] How to get the results clearly? Thanks -- Posted via http://www.ruby-forum.com/.