RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Multiple sets of independent validations with validation_scopes

I cooked up ValidationScopes to expose the full power of ActiveRecord validations to more than one set of errors. Useful if you want to display different sets of errors in different contexts and still be able to save the object regardless of the additional validation sets’ state. It is about as loosely coupled as possible to ActiveRecord::Validations which means you can expect a smooth transition to Rails 3.

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