Search

Chaps

Sweet sweet memories

Blather

Uptime verified by Wormly.com

Cairns to Alice Springs

Alice and I are riding our bikes to Alice Springs from Cairns. We have a bit of a travel blog, Flickr photos and our funny little SPOT GPS tracker page.

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
  • **bold text**
  • *italicized text*
  • > This text is blockquoted
  • * This is an unordered list item
  • 1. This is an ordered list item
  • [Link Text](http://www.example.com/)
  • `code item`

Cairns to Alice Springs

1.444 seconds