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:
- Move to Awesome Nested Set, a drop-in replacement for BNS which has some additional features, among them STI (Single Table Inheritance).
- Apply this patch developed by Tony Hillerson, to your Better Nested Set plugin.