attr_accessor and model.attributes

Any suggestions on how to iterate over attr_accessors (plus all other
'real' db attributes?).

model.attributes doesn't, and model.methods isn't revealing anything
usefull.

thoughts?

TIA.
Jodi

Jodi wrote:

Any suggestions on how to iterate over attr_accessors (plus all other
'real' db attributes?).

model.attributes doesn't, and model.methods isn't revealing anything
usefull.

Have a look about half-way down this page:

   http://wiki.rubyonrails.org/rails/pages/HowToStripWhitespaceFromModelFields