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

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 1, '11 at 1:04p
activeOct 1, '11 at 1:21p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Everaldo Gomes: 1 post Misha Ognev: 1 post

People

Translate

site design / logo © 2021 Grokbase