application.rbにこの行config.filter_parameters += [:password, :efile, :title]
があります。
しかし、次のようにモデルを保存しようとすると:
@claim_db[:xml] = xml_builder.to_xml.gsub('utf-8', 'utf-16')
@claim_db[:title] = title.present? ? title : nil
@claim_db[:applicants] = applicants.present? ? applicants : nil
@claim_db[:native_number] = nn.present? ? nn : nil
@claim_db[:change_date] = Time.now
@claim_db[:is_signed] = false
@claim_db[:with_errors] = errors.count > 0
@claim_db.save!
ログで取得:
←[1m←[36mAREL (2.0ms)←[0m ←[1mINSERT INTO [edocs] ([eclaim_id], [materialtitl
e_id], [is_secondary], [title], [ext], [size], [code], [receive_date], [reg_date
], [reg_numb], [idcead], [efile]) VALUES (100003, 7, 0, N'test', N'rtf', 4, N'test', '2012-05-11 21:05:12
.125', NULL, NULL, NULL, 0x61737373)←[0m
←[1m←[35mEXECUTE (0.0ms)←[0m COMMIT TRANSACTION
どうすれば修正できますか?