Default_error_messages error with attachment_fu


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!


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs