Sam Pierson wrote:> I''ve seen a few semi-solutions to this issue but nothing recent
and
> coherent.
> What is the best way to use the AR validation system on non-AR objects?
> Seems like this come up enough it should be a HowTo on the Rails site.
>
> Thanks,
>
> -Sam.
Sam,
Why not mixin ActiveRecord::Validations, override #validate, and call
#valid? when needed?
David B. Williams
http://www.cybersprocket.com
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---