From: Tom Ha Date: 2008-12-17T05:39:27+09:00 Subject: How to cycle through an instance Hi there, I'm sorry for this noob question (but at least it must be a quick one for you guys): I have an instance of an object in my database and need to get out every element of it, like this: Example: model = student ======================== firstname = Fred lastname = Williams streetname = NULL city = NULL date of birth = 12.12.1934 ... (until there is no more column name left for this model) How do I correctly/efficiently cycle through this one? Thank you very much for your help! Tom -- Posted via http://www.ruby-forum.com/.