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
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
–
We develop, watch us RoR, in numbers too big to ignore.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs