From: jazzez ravi Date: 2008-11-29T19:45:47+09:00 Subject: problem in Hash formatted output Hi All, I have an Array Like this @output=[{"accounts"=>["id", "group_id", "company_id", "number", "name", "opening_balance", "description", "editable", "created_at", "updated_at", "source_account", "deleted_status", "alias", "closing_balance", "flag"]}, {"blogs"=>["id", "category_id", "title", "content", "views", "created_at", "updated_at"]}, {"categories"=>["id", "name"]} {"clients"=>["id", "first_name", "last_name", "street1", "street2", "city", "state", "zip", "country", "phone", "fax", "email", "website", "flag", "created_at", "updated_at"]}, {"companies"=>["id", "client_id", "name", "street1", "street2", "city", "state", "zip", "country", "phone", "fax", "email", "website", "flag", "created_at", "updated_at", "business_number", "year_end_date", "net_days", "selected_province", "tax", "plan_name", "error_display", "logo_display_flag", "business_type", "user_id"]}, {"company_details"=>["id", "content_type", "filename", "size", "parent_id", "thumbnail", "width", "height", "db_file_id", "attachable_type", "attachable_id"]}, {"contacts"=>["id", "company_id", "company_name", "first_name", "last_name", "title", "street1", "street2", "city", "state", "zip", "country", "phone", "email", "fax", "website", "contact_type", "created_at", "updated_at", "account_id", "flag"]}, {"countries"=>["id", "name", "code"]}] This is my array. I want to get exactly like this Output format OUTPUT: 01.accounts id group_id company_id number name opening_balance description editable created_at updated_at source_account deleted_status alias closing_balance flag ------------------------ 02.blogs id category_id title content views created_at updated_at ----------------------- AND So ON Please provide a code for it Thanks, P.Raveendran http://raveendran.wordpress.com -- Posted via http://www.ruby-forum.com/.