Hi, Despite close reading of Matz's Ruby book and Agile Web Dev. w. Rails, I can't figure out how to tackle the challenge of sharing validation code across models with attributes in common.
In each of my models I'd like to validate the shared attributes with a custom validator that includes Rails ActiveRecord::Validations class methods and some of my own validations. My problem is 1) I don't know how to pass attribute references to my special method and 2) (mundane) I can't successfully call any ActiveRecord::Validations class methods from within my custom method. A bit of garbage here, I know, but any thoughts? Is this kind of problem handled by use of certain gems? Thanks, Grar -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.