RubyFlow The Ruby and Rails community linklog

How to validate the uniqueness of an attribute across multiple models in Rails

I recently ran into the situation where I had to validate an attribute across multiple models. It can be beautifully solved with a ActiveSupport Concern and I blogged about it today. Check it out and let me know what you think in the comments!

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in