method
assert_valid
v1.2.6 -
Show latest stable
- Class:
ActionController::Assertions::ModelAssertions
assert_valid(record)public
Ensures that the passed record is valid by ActiveRecord standards and returns any error messages if it is not.