Dirk Bergmann

Developer, panographer. Does consultancy work from own company. Lives in Chiang Mai, Thailand.

Twitter

Chiang Mai

Hua Hin

Thailand Hotels

ListVote - List. Vote. Learn.

Partnerseek - Find Partners

ArgumentError: wrong number of arguments (3 for 2) with Better Nested Set Plugin

If you?re using the Better Nested Set plugin in your 2.1 Rails app and get an error such as

ArgumentError: wrong number of arguments (3 for 2)
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:2479:in `attributes_with_quotes'

upon saving your model or upon calling update_attributes, you have two options:

Happy nesting!