Tagged with activerecord

Validating single model attribute in rails

Checking a single attribute on a model for validity doesn’t seem to be possible in Rails. Or at least I couldn’t find a quick answer googling around or looking through the ActiveRecord code. What I really want to do is pass a hash into valid? with the attributes I want to validate or have an … Continue reading