Flowdock
method

assert_valid

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActionController::Assertions::ModelAssertions

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

assert_valid(record) public

Ensures that the passed record is valid by Active Record standards and returns any error messages if it is not.

Examples

  # assert that a newly created record is valid
  model = Model.new
  assert_valid(model)
Show source
Register or log in to add new notes.