Search

Friends

Atomspheric CO2 (PPM)

Archives

Blather

Uptime verified by Wormly.com

18 December 2009

DEPRECATION WARNING: ActiveRecord::Errors.default_error_messages & attachment_fu

The latest version of attachment_fu will give you this error. You need to replace a line in this file:

vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:386

+ errors.add attr_name, I18n.translate('activerecord.errors.messages.inclusion') unless enum.nil? || enum.include?(send(attr_name))    
- errors.add attr_name, ActiveRecord::Errors.default_error_messages[:inclusion] unless enum.nil? || enum.include?(send(attr_name))

Comments

  1. Thanks! This is exactly what I was looking for.

    mike_c / 11:34am / 11 March 2010

Leave a comment

Markdown

0.565 seconds