validates_confirmation_of
Railsアプリで 壊れたようです。
私のモデルは次のようになります。
class Blark
include ActiveModel::Validations
attr_accessor :text
validates_confirmation_of :text
end
これは私がそれを使うときに起こることです:
0 HAL work/nrb-brewery-management % rails c
Loading development environment (Rails 3.2.5)
1.9.3p0 :001 > b = Blark.new
=> #<Blark:0xae2e2d0>
1.9.3p0 :002 > b.text = 'llama'
=> "llama"
1.9.3p0 :003 > b.text_confirmation
=> nil
1.9.3p0 :004 > b.valid?
=> true
なぜb
ここで有効なのですか?