RubyFlow The Ruby and Rails community linklog

Validating Non-ActiveRecord Models in Rails

Neeraj has put together a cool demonstration of validating non-ActiveRecord models (but using AR validations) in Rails. This could be very useful!

Comments

Very awesome, although I did wish he explained why append_features instead of included. I found Matz’s response about the difference, but I don’t think I fully understand.

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