generic methods (like find_by_xxx)

Fernando,

I would look at the callbacks in ActiveRecord. In particular I can see using a before_validation callback to clean the attributes as needed.

http://caboo.se/doc/classes/ActiveRecord/Callbacks.html

Hope this helps.