# Default\_error\_messages error with attachment\_fu

**URL:** <https://www.ruby-forum.com/t/default-error-messages-error-with-attachment-fu/174600>\
**Category:** Rails\
**Created:** [August 29, 2009, 12:57pm UTC](https://www.ruby-forum.com/t/default-error-messages-error-with-attachment-fu/174600 "2009-08-29T12:57:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wsimacek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/e8c25b/32.png) [@wsimacek](https://www.ruby-forum.com/u/wsimacek)\
**Post date:** [August 29, 2009, 12:57pm UTC](https://www.ruby-forum.com/t/default-error-messages-error-with-attachment-fu/174600/1 "2009-08-29T12:57:36Z")

</div>

Hi,

Just a newbie at Rails. Was looking at uploading images using  
attachment\_fu and RMagick on a Windows Vista machine, but was getting  
this error. Any possible way of fixing this problem?

ActiveRecord::Errors.default\_error\_messages has been deprecated. Please  
use I18n.translate(‘activerecord.errors.messages’)

I guess it’s attributed to this line in attachment\_fu.rb

errors.add attr\_name,  
ActiveRecord::Errors.default\_error\_messages[:inclusion] unless enum.nil?  
|| enum.include?(send(attr\_name))

Can anyone help? Thanks!

Wayne
