instance method record_error

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v3.2.22.5 Private — implementation detail, not part of the public API

Available in: v3.1.12 v3.2.22.5

Signature

record_error(record, attribute, name, value)

No documentation comment.

Parameters

record req
attribute req
name req
value req
Source
# File activemodel/lib/active_model/validations/format.rb, line 32
      def record_error(record, attribute, name, value)
        record.errors.add(attribute, :invalid, options.except(name).merge!(:value => value))
      end

Defined in activemodel/lib/active_model/validations/format.rb line 32 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::Validations::FormatValidator

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close