Hi!
Search for "rails custom validators"

http://www.perfectline.ee/blog/building-ruby-on-rails-3-custom-validators

Best Regards,
Everaldo

On Sat, Oct 1, 2011 at 10:04 AM, Misha Ognev <[email protected]> wrote:

> Let I have several models, and one method that must validate them.
>
> I want to keep my code DRY, so how I must attach code to several models?
>
> --
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to