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!

Posted: 05 October 2008

comments powered by Disqus